/* admin.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Minimal Modern Palette */
    --primary-color: #2563eb;
    /* Vibrant Blue */
    --secondary-color: #64748b;
    /* Slate Gray */
    --accent-color: #3b82f6;
    /* Lighter Blue */
    --success-color: #10b981;
    /* Emerald */
    --danger-color: #ef4444;
    /* Soft Red */
    --bg-color: #ffffff;
    /* Pure White */
    --surface-color: #ffffff;
    --border-color: #f1f5f9;
    /* Very light gray */
    --text-color: #1e293b;
    /* Dark Slate */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: var(--surface-color);
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 400px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.login-box h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: block;
    width: 100%;
    transition: all 0.2s;
    box-sizing: border-box;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-header h2 {
    font-weight: 700;
    color: var(--text-color);
    font-size: 24px;
    margin: 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.client-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.client-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.client-card .delete-client-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--secondary-color);
    background: transparent;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: all 0.2s;
}

.client-card:hover .delete-client-btn {
    opacity: 1;
}

.client-card .delete-client-btn:hover {
    background: var(--danger-color);
    color: white;
}

.folder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--accent-color);
    opacity: 0.9;
}

.add-client-card {
    border: 2px dashed var(--border-color);
    background: transparent;
    box-shadow: none;
}

.add-client-card:hover {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.add-client-card h3 {
    color: var(--success-color);
}

.add-client-card .folder-icon {
    color: var(--success-color);
    font-size: 32px;
    background: #dcfce7;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 12px;
}

/* Invoices List */
.invoices-list {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background 0.2s;
}

.invoice-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.invoice-item:hover {
    background: #f8fafc;
}

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

.small-btn {
    padding: 8px 12px;
    font-size: 14px;
    width: auto;
    background: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.small-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: none;
}

/* Recent Section */
.recent-section {
    margin-top: 60px;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.recent-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
    border: none;
    padding: 0;
}

/* Utilities */
.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: none;
}

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

.close-btn {
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

/* Breadcumb */
.breadcrumb {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    cursor: pointer;
}

.breadcrumb:hover {
    text-decoration: underline;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}