/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Links sadece içerik alanında (navbar ve footer etkilenmesin) */
.license-register-page .page-content a {
    color: #728e4f;
    text-decoration: none;
    transition: color 0.2s;
}

.license-register-page .page-content a:hover {
    color: #5f7842;
}

/* Tablo için geniş içerik alanı */
.license-register-page .page-content {
    max-width: 1200px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #c8102e;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 11px;
    color: #666;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 10px 15px;
    color: #1a2744;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    color: #c8102e;
}

.main-nav .arrow {
    font-size: 10px;
    margin-left: 4px;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 4px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    z-index: 100;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

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

.dropdown li a:hover {
    background: #f8f9fa;
    color: #c8102e;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #1a2744;
    border-radius: 2px;
    transition: all 0.3s;
}

.info-list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.info-list li {
    margin-bottom: 8px;
    color: #444;
}

.info-list strong {
    color: #1a2744;
}

/* Table Container */
.table-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.table-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-label {
    font-size: 14px;
    color: #666;
}

.search-input-wrapper {
    display: flex;
    align-items: stretch;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    width: 200px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #1a2744;
}

.search-btn {
    padding: 8px 12px;
    background: #1a2744;
    border: 1px solid #1a2744;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #2a3a5a;
}

/* License Table */
.license-table {
    width: 100%;
    border-collapse: collapse;
}

.license-table thead {
    background: #1a2744;
}

.license-table th {
    padding: 15px 12px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.license-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background 0.2s;
}

.license-table tbody tr:hover {
    background: #f8f9fa;
}

.license-table td {
    padding: 12px;
    font-size: 13px;
    color: #444;
    vertical-align: top;
}

.license-table td:first-child {
    font-weight: 500;
    color: #1a2744;
}

/* Status */
.status-valid {
    color: #28a745;
    font-weight: 500;
}

.status-suspended {
    color: #ffc107;
    font-weight: 500;
}

.status-revoked {
    color: #dc3545;
    font-weight: 500;
}

/* Pagination */
.pagination {
    padding: 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid #e0e0e0;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.pagination-list button {
    padding: 8px 14px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-list button:hover:not(:disabled) {
    background: #1a2744;
    border-color: #1a2744;
    color: #fff;
}

.pagination-list button.active {
    background: #1a2744;
    border-color: #1a2744;
    color: #fff;
}

.pagination-list button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.site-footer {
    background: #1a2744;
    color: #fff;
    padding: 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content span {
    font-size: 14px;
}

.dmca-badge {
    height: 25px;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #c8102e;
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #a00d24;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 992px) {
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        padding: 20px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav > ul > li > a {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        background: #f8f9fa;
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }

    .license-table {
        font-size: 12px;
    }

    .license-table th,
    .license-table td {
        padding: 10px 8px;
    }

    .table-header {
        justify-content: center;
    }

    .footer-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .page-title {
        font-size: 28px;
    }

    .table-container {
        overflow-x: auto;
    }

    .license-table {
        min-width: 800px;
    }

    .search-input {
        width: 150px;
    }
}
