/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    color: #0056b3;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Form Stilleri */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="file"] {
    border: 1px solid #ddd;
    padding: 10px;
    width: 100%;
    border-radius: 4px;
    background: #fff;
}

button, .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

button:hover, .btn:hover {
    background-color: #003d82;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #5a6268;
    text-decoration: none;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

small {
    color: #6c757d;
    display: block;
    margin-top: 5px;
}

/* Header ve Footer */
header {
    background-color: #0056b3;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo h1 {
    margin: 0;
    font-size: 24px;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 15px;
}

.btn-logout {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
}

/* Ana Sayfa Dashboard */
.dashboard {
    padding: 20px;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.stat-box {
    flex: 1;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-right: 15px;
    text-align: center;
}

.stat-box:last-child {
    margin-right: 0;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #0056b3;
}

.quick-actions {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.recent-documents {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tablo Stilleri */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

table tr:hover {
    background-color: #f5f5f5;
}

/* Uyarı ve Başarı Bildirimleri */
.success, .error {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Arama ve Filtreleme */
.search-form {
    display: flex;
    margin-bottom: 20px;
}

.search-form input[type="text"] {
    flex: 2;
    margin-right: 10px;
}

.search-form select {
    flex: 1;
    margin-right: 10px;
}

.filters {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.action-buttons {
    margin-top: 10px;
}

/* Belge Görüntüleme */
.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.document-actions {
    display: flex;
    gap: 10px;
}

.document-info {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    width: 200px;
    color: #555;
}

.document-preview {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.preview-image {
    max-width: 100%;
    height: auto;
}

.text-preview {
    white-space: pre-wrap;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
}

/* Kullanıcı Giriş Sayfası */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container h1 {
    margin-bottom: 5px;
}

.login-container h2 {
    margin-bottom: 30px;
    color: #6c757d;
    font-weight: normal;
}

/* Kategori Yönetimi */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.category-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-list {
    flex: 2;
    min-width: 600px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Sayfalama */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.pagination .current {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* Kişisel Dosyalar Sayfası Stilleri */
.upload-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.files-list {
    flex: 2;
    min-width: 600px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: auto;
}

.checkbox-group label {
    display: inline;
    margin-bottom: 0;
}

.shared-files {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-results {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.document-stats {
    text-align: right;
    color: #6c757d;
    font-style: italic;
    margin-top: 10px;
}

/* Öğretim Üyeleri Grid Görünümü */
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.faculty-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faculty-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.faculty-image {
    height: 250px;
    overflow: hidden;
}

.faculty-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faculty-card:hover .faculty-image img {
    transform: scale(1.05);
}

.faculty-info {
    padding: 15px;
}

.faculty-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #0056b3;
}

.faculty-department {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.faculty-faculty {
    font-size: 12px;
    color: #777;
}

/* Öğretim Üyesi Profil Sayfası */
.faculty-profile {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
}

.profile-info h1 {
    margin: 0 0 10px 0;
    color: #0056b3;
}

.profile-info .department {
    font-size: 18px;
    color: #555;
    margin-bottom: 5px;
}

.profile-info .faculty {
    font-size: 16px;
    color: #777;
    margin-bottom: 15px;
}

.contact-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.admin-actions {
    margin-top: 20px;
}

.profile-bio {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.profile-bio h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0056b3;
}

.bio-content {
    line-height: 1.7;
}

.profile-documents {
    padding: 20px;
}

.documents-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.documents-header h2 {
    margin: 0;
}

/* Öğretim Üyesi Ekleme/Düzenleme Formu */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.card-body {
    padding: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control-file {
    display: block;
    width: 100%;
}

/* Erişim Kayıtları Sayfası */
.logs-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 20px;
}

.logs-filters .form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.log-details {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 14px;
    color: #555;
}

.log-action {
    display: inline-block;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.log-action.view {
    background-color: #17a2b8;
}

.log-action.download {
    background-color: #28a745;
}

.log-action.edit {
    background-color: #ffc107;
    color: #333;
}

.log-action.delete {
    background-color: #dc3545;
}

.log-summary {
    display: flex;
    justify-content: space-between;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.log-metric {
    text-align: center;
    padding: 0 15px;
    border-right: 1px solid #eee;
}

.log-metric:last-child {
    border-right: none;
}

.log-metric h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #555;
}

.log-metric p {
    font-size: 24px;
    font-weight: bold;
    color: #0056b3;
    margin: 0;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
    }
    
    nav ul {
        margin: 15px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stats, .content-wrapper {
        flex-direction: column;
    }
    
    .stat-box, .category-form, .upload-form, .files-list {
        margin-right: 0;
        margin-bottom: 15px;
        min-width: 100%;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form input, .search-form select {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .document-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .document-actions {
        margin-top: 15px;
    }
    
    .info-row {
        flex-direction: column;
    }
    
    .info-row .label {
        width: 100%;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .faculty-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .profile-header {
        flex-direction: column;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 20px;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .logs-filters {
        flex-direction: column;
    }
    
    .logs-filters .form-group {
        width: 100%;
    }
    
    .log-summary {
        flex-direction: column;
    }
    
    .log-metric {
        padding: 10px 0;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .log-metric:last-child {
        border-bottom: none;
    }
}

/* Tema Renklerini Özelleştirme */
:root {
    --primary-color: #0056b3;
    --primary-dark: #003d82;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

.dots {
    display: inline-block;
    margin: 0 3px;
}