:root {
    /* Theme-aware tints */
    --color-primary: #3598dc;
    --color-secondary: #8E44AD;
    --color-success: #26a69a;
    --color-info: #3598dc;
    --color-warning: #f29a12;
    --color-danger: #f4516c;
    --color-light: #f3f6f9;
    --color-dark: #2f353b;
    --color-border: #ebedf3;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.075);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Gizli datatable */
.hidden-datatable {
    display: none;
}

/* İstatistik kartları */
.stat-cards {
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    font-size: 32px;
    margin-bottom: 15px;
    display: inline-block;
    color: var(--color-primary);
}

.stat-card .stat-title {
    font-size: 14px;
    color: #777;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 26px;
    font-weight: 600;
    color: var(--color-dark);
}

.stat-card .stat-info {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.stat-card.primary {
    border-top: 3px solid var(--color-primary);
}

.stat-card.success {
    border-top: 3px solid var(--color-success);
}

.stat-card.warning {
    border-top: 3px solid var(--color-warning);
}

.stat-card.danger {
    border-top: 3px solid var(--color-danger);
}

.stat-card.info {
    border-top: 3px solid var(--color-info);
}

.stat-card.secondary {
    border-top: 3px solid var(--color-secondary);
}

/* Kurum kartı */
.institution-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.institution-header {
    padding: 25px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    position: relative;
}

.institution-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 15px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.institution-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.institution-logo-placeholder {
    font-size: 40px;
    color: #3598dc;
}

.institution-name {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 5px;
}

.institution-status {
    text-align: center;
    margin-bottom: 10px;
}

.institution-status .badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
}

.badge-active {
    background: var(--color-success) !important;
}

.badge-inactive {
    background: var(--color-danger) !important;
}

.institution-tabs {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.institution-tabs .nav-tabs {
    border-bottom: none;
}

.institution-tabs .nav-tabs > li > a {
    margin-right: 0;
    border: none;
    border-radius: 0;
    color: #777;
    padding: 15px 20px;
}

.institution-tabs .nav-tabs > li.active > a,
.institution-tabs .nav-tabs > li.active > a:focus,
.institution-tabs .nav-tabs > li.active > a:hover {
    border: none;
    color: var(--color-primary);
    background: transparent;
    position: relative;
}

.institution-tabs .nav-tabs > li.active > a:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
}

.institution-body {
    padding: 25px;
}

.info-group {
    margin-bottom: 20px;
}

.info-group-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-dark);
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 8px;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 500;
    color: var(--color-dark);
}

.info-item a.editable {
    font-weight: 500;
    color: var(--color-primary);
    border-bottom: 1px dashed;
    text-decoration: none;
}

/* Öğrenci istatistik kartları */
.student-stats {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    overflow: hidden;
}

.student-stats-header {
    padding: 15px 20px;
    background: var(--color-light);
    border-bottom: 1px solid var(--color-border);
}

.student-stats-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
}

.student-stats-body {
    padding: 20px;
}

.student-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

.student-stat-item:last-child {
    border-bottom: none;
}

.student-stat-label {
    display: flex;
    align-items: center;
}

.student-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
}

.student-stat-text {
    font-weight: 500;
}

.student-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark);
}

.bg-active {
    background: var(--color-success);
}

.bg-pending {
    background: var(--color-warning);
}

.bg-canceled {
    background: var(--color-danger);
}

.bg-frozen {
    background: var(--color-info);
}

.bg-expired {
    background: var(--color-secondary);
}

/* Iframe kod alanı */
.iframe-container {
    margin-top: 20px;
    background: #f9fafc;
    border: 1px solid #e7ecf1;
    border-radius: var(--radius-sm);
    padding: 15px;
}

.iframe-container h4 {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #5e6278;
}

/* İletişim bilgileri */
.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-info .contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: var(--color-light);
    color: var(--color-primary);
}

.contact-info .contact-content {
    flex: 1;
}

.contact-info .contact-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.contact-info .contact-value {
    font-weight: 500;
}

/* Mail ayarları */
.mail-settings {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
}

.mail-settings-header {
    padding: 15px 20px;
    background: var(--color-light);
    border-bottom: 1px solid var(--color-border);
}

.mail-settings-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
}

.mail-settings-body {
    padding: 20px;
}

/* Eylemler bölümü */
.institution-actions {
    margin-top: 20px;
    text-align: right;
}
