.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
}

.login-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    max-width: 400px;
    width: 90%;
}

.login-form {
    margin-top: 30px;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--accent-color);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-username {
    font-weight: 600;
    color: var(--text-primary);
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box input {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    min-width: 250px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.activity-chart {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 20px 0;
}

.chart-bar {
    flex: 1;
    background: var(--accent-color);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 5px;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    background: var(--accent-hover);
}

.chart-bar-label {
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.chart-bar-value {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.top-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.top-link-item:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(5px);
}

.top-link-url {
    flex: 1;
    margin-right: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-link-clicks {
    font-weight: 700;
    font-size: 1.2rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--bg-secondary);
}

th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background: var(--bg-secondary);
}

.link-code {
    font-weight: 600;
    color: var(--accent-color);
    font-family: monospace;
}

.link-url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 20px 0;
}

.pagination button {
    padding: 8px 15px;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

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

.pagination .page-info {
    padding: 0 15px;
    color: var(--text-secondary);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-overview {
        grid-template-columns: 1fr 1fr;
    }

    .search-box input {
        min-width: 100%;
    }

    .links-table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 10px;
    }

    .top-link-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .activity-chart {
        height: 150px;
    }
}
