/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="file"],
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #3498db;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #2980b9;
}

/* Messages */
.error {
    color: #e74c3c;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    background-color: #fadbd8;
}

.success {
    color: #27ae60;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #27ae60;
    border-radius: 4px;
    background-color: #d5f5e3;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.document-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.document-card h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* PDF Viewer Styles */
.pdf-container {
    width: 100%;
    margin: 15px 0;
}

.pdf-viewer {
    width: 100%;
    height: 300px;
    border: 1px solid #eee;
    margin-bottom: 10px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
}

.pdf-viewer canvas {
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.pdf-actions {
    display: flex;
    gap: 10px;
}

.download-btn, .fullscreen-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    text-align: center;
}

.download-btn {
    
}

.download-btn:hover {
    background-color: #2980b9;
}

.fullscreen-btn {
    background-color: #f1c40f;
    color: #333;
}

.fullscreen-btn:hover {
    background-color: #f39c12;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .pdf-actions {
        flex-direction: column;
    }
}

/* Results */
.results {
    margin-top: 30px;
}

.results ul {
    list-style-type: none;
    padding: 0;
}

.results li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.results li:last-child {
    border-bottom: none;
}

.results a {
    color: #3498db;
    text-decoration: none;
}

.results a:hover {
    text-decoration: underline;
}

/* Admin Navigation */
.admin-nav {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.admin-nav a {
    margin-right: 15px;
    color: #3498db;
    text-decoration: none;
}

.admin-nav a:hover {
    text-decoration: underline;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f2f2f2;
}

table tr:hover {
    background-color: #f5f5f5;
}

table a {
    margin-right: 10px;
    color: #3498db;
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}