/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size:14px
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h1 {
    font-size: 28px;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-weight: 500;
}

/* Navigation Styles */
nav ul {
    display: flex;
    list-style: none;
    background-color: #2c3e50;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}

nav ul li {
    flex: 1;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    text-align: center;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #34495e;
}

nav ul li a.active {
    background-color: #3498db;
    font-weight: bold;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #c0392b;
}

.btn-edit {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-edit:hover {
    background-color: #d35400;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-block;
    margin-left: 5px;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Message Styles */
.message, .error {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.message {
    background-color: #FF0000;
    color: #FFFFFF;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: white;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd; font-size:18px; color:#000000; line-height:1;
}

table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 500;
}

table tr:hover {
    background-color: #f5f5f5;
}

table .actions {
    white-space: nowrap;
}

/* Stats Cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #7f8c8d;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Activity List */
.activity-list {
    list-style: none;
}

.activity-list li {
    background-color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.activity-list li small {
    color: #7f8c8d;
    font-size: 18px;
}

/* Catatan kutipan */
.catatan {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    color: black;
    font-size: 18px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Admin Sections */
.admin-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.admin-section {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
}
/* Tambahkan style baru */
.file-info {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.file-info a {
    color: #3498db;
    text-decoration: none;
}

.file-info a:hover {
    text-decoration: underline;
}

.link-literatur {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
}

.link-literatur a {
    color: #3498db;
    text-decoration: none;
}

.link-literatur a:hover {
    text-decoration: underline;
}

.user-row td {
    vertical-align: middle;
}

/* Style untuk modal edit user */
#editUserModal .modal-content {
    max-width: 500px;
}
/* Pencarian dan Pagination */
.highlight {
    background-color: #ffeb3b;
    font-weight: bold;
    padding: 0 2px;
}

.search-box {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3498db;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination .active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination-info {
    text-align: center;
    margin-top: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

/* Search Box */
.search-box {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.search-box .form-group {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-box .btn-clear {
    background: #6c757d;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.search-box .btn-clear:hover {
    background: #5a6268;
}

/* Paging Info */
.paging-info {
    margin: 15px 0;
    color: #6c757d;
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 5px;
}

.pagination a {
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a.active {
    background: #3498db;
    color: white;
    font-weight: bold;
}

/* File Info */
.file-info {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

.file-info a {
    color: #3498db;
    text-decoration: none;
}

.file-info a:hover {
    text-decoration: underline;
}
/* Form Container */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Form Group */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}
/* Admin Section */
.admin-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.admin-section {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Table Styles */
.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th, .user-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.user-table th {
    background: #2c3e50;
    color: white;
}

.user-table tr.blocked {
    background-color: #f8d7da;
}

/* Action Buttons */
.actions {
    white-space: nowrap;
}

.actions a {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.btn-block {
    background: #dc3545;
    color: white;
}

.btn-block:hover {
    background: #c82333;
}

.btn-unblock {
    background: #28a745;
    color: white;
}

.btn-unblock:hover {
    background: #218838;
}

.btn-delete {
    background: #6c757d;
    color: white;
}

.btn-delete:hover {
    background: #5a6268;
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-view:hover {
    background: #138496;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Catatan kutipan */
.catatan {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ddd;
    color: #666;
    font-size: 14px;
}
/* Admin Section */
.admin-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.admin-section {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Table Styles */
.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.user-table th, .user-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.user-table th {
    background-color: #2c3e50;
    color: white;
    font-weight: 500;
}

.user-table tr:hover {
    background-color: #f5f5f5;
}

.user-table .actions {
    white-space: nowrap;
}

/* Button Styles */
.btn-edit {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-edit:hover {
    background-color: #d35400;
}

.btn-warning {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-block;
    margin-left: 5px;
}

.btn-warning:hover {
    background-color: #c0392b;
}

.btn-success {
    background-color: #2ecc71;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-block;
    margin-left: 5px;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-info {
    background-color: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-block;
    margin-left: 5px;
}

.btn-info:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #7f8c8d;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
    display: inline-block;
    margin-left: 5px;
}

.btn-delete:hover {
    background-color: #34495e;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .user-table .actions {
        white-space: normal;
    }
    
    .user-table .actions a, 
    .user-table .actions button {
        margin-bottom: 5px;
        display: inline-block;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
/* Admin Specific Styles */
.admin-actions {
    margin-bottom: 20px;
}

.user-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.user-list th, .user-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.user-list th {
    background-color: #2c3e50;
    color: white;
    font-weight: 500;
}

.user-list tr:hover {
    background-color: #f5f5f5;
}

.actions {
    white-space: nowrap;
    text-align: center;
}

.btn-action {
    display: inline-block;
    padding: 5px 8px;
    margin: 0 2px;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.btn-action:hover {
    background-color: #e0e0e0;
}

.back-link {
    margin-bottom: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}