/* Reset e Variáveis */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --teal-color: #16a085;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dark-bg: #34495e;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--light-bg);
}

/* Login Page - Moderno */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.login-page.client-login {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-box-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.login-header {
    margin-bottom: 40px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.login-logo i {
    font-size: 36px;
    color: white;
}

.client-logo-login {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.client-login-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.client-login-btn:hover {
    background: linear-gradient(135deg, #3d8bfe 0%, #00d9fe 100%);
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.5);
}

.login-box-modern h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.login-box-modern p {
    color: #7f8c8d;
    margin-bottom: 0;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group-modern {
    margin-bottom: 25px;
    text-align: left;
}

.form-group-modern label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group-modern label i {
    color: #667eea;
    font-size: 14px;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #667eea;
}

.form-group input,
.form-control,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group-modern input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid #e8ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group-modern input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input:focus,
.form-control:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--teal-color);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
    color: var(--white);
    width: 100%;
    border: none;
    box-shadow: 0 2px 8px rgba(22, 160, 133, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #138d75 0%, #16a085 100%);
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.4);
    transform: translateY(-1px);
}

.btn-primary-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-primary-modern:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-teal {
    background: var(--teal-color);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
}

.btn-block {
    width: 100%;
    display: block;
}

.alert {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.alert-error-modern {
    background: #fee;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success-modern {
    background: #d4edda;
    color: #27ae60;
    border: 2px solid #27ae60;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #7f8c8d;
}

.remember-me input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: #764ba2;
    text-decoration: underline;
}

.login-form {
    margin-top: 30px;
}

.login-footer-modern {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e8ecef;
}

.login-footer-modern p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.client-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.client-link:hover {
    color: #764ba2;
    transform: translateX(3px);
}

.login-footer {
    margin-top: 20px;
    font-size: 14px;
}

.login-footer a {
    color: var(--teal-color);
    text-decoration: none;
}

/* Admin Layout */
.admin-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f5f6fa;
}

.admin-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e8ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
    color: var(--white);
    padding: 12px 22px;
    font-weight: 700;
    font-size: 18px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(22, 160, 133, 0.4);
}

.logo i {
    font-size: 20px;
}

.header-icons {
    display: flex;
    gap: 12px;
}

.header-icons i {
    cursor: pointer;
    color: #7f8c8d;
    font-size: 18px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.header-icons i:hover {
    background: #f0f0f0;
    color: #16a085;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search i {
    position: absolute;
    left: 15px;
    color: #7f8c8d;
    font-size: 14px;
}

.search-input {
    padding: 10px 15px 10px 40px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 13px;
    width: 250px;
    transition: all 0.3s;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #16a085;
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
    width: 300px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    border-radius: 25px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e8ecef;
}

.user-menu:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

.user-role {
    color: #7f8c8d;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-dropdown {
    color: #7f8c8d;
    font-size: 12px;
}

.btn-logout {
    color: #e74c3c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
}

.btn-logout:hover {
    background: #fee;
    color: #c0392b;
}

.admin-container {
    display: flex;
    flex: 1;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    min-height: calc(100vh - 70px);
    padding: 0;
    box-shadow: 4px 0 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-sidebar::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex: 1;
}

.nav-item {
    color: var(--white);
    padding: 14px 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
    border-left: 4px solid transparent;
    font-size: 14px;
    position: relative;
    margin: 2px 0;
    border-radius: 0 8px 8px 0;
}

.nav-item span {
    flex: 1;
}

.nav-item i:first-child {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.nav-item .active-indicator {
    font-size: 6px;
    color: #1abc9c;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: rgba(255,255,255,0.4);
    transform: translateX(3px);
    padding-left: 28px;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(22, 160, 133, 0.2) 0%, rgba(22, 160, 133, 0.05) 100%);
    border-left-color: #1abc9c;
    font-weight: 600;
    box-shadow: inset 0 0 20px rgba(22, 160, 133, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1abc9c 0%, #16a085 100%);
    box-shadow: 0 0 10px rgba(26, 188, 156, 0.5);
}

.admin-main {
    flex: 1;
    padding: 35px;
    background: #f5f6fa;
    min-height: calc(100vh - 70px);
}

.page-header {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.page-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title::before {
    content: '';
    width: 4px;
    height: 32px;
    background: linear-gradient(180deg, #16a085 0%, #1abc9c 100%);
    border-radius: 2px;
}

.breadcrumbs {
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs::before {
    content: '';
    display: none;
}

.breadcrumbs a {
    color: #16a085;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #138d75;
}

.breadcrumbs i {
    font-size: 10px;
    color: #bdc3c7;
}

/* Dashboard */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.stat-card-hover {
    cursor: pointer;
}

.stat-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: transparent;
}

.stat-link {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    text-decoration: none;
    opacity: 0;
    transition: all 0.3s;
    font-size: 12px;
}

.stat-card-hover:hover .stat-link {
    opacity: 1;
    background: rgba(22, 160, 133, 0.1);
    color: #16a085;
}

.stat-change {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-change.positive {
    color: #27ae60;
}

.stat-change.warning {
    color: #f39c12;
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stat-icon.clients {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
}

.stat-icon.invoices {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
}

.stat-icon.orders {
    background: linear-gradient(135deg, #f39c12 0%, #f4d03f 100%);
}

.stat-icon.tickets {
    background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 13px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 0 0 6px 6px;
}

.stat-progress.clients {
    background: linear-gradient(90deg, #16a085 0%, #1abc9c 100%);
}

.stat-progress.invoices {
    background: linear-gradient(90deg, #3498db 0%, #5dade2 100%);
}

.stat-progress.orders {
    background: linear-gradient(90deg, #f39c12 0%, #f4d03f 100%);
}

.stat-progress.tickets {
    background: linear-gradient(90deg, #e74c3c 0%, #ec7063 100%);
}

.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
}

.dashboard-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e8ecef;
    transition: all 0.3s;
}

.dashboard-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.dashboard-card h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card h3 i {
    color: #16a085;
    font-size: 18px;
}

.billing-table {
    width: 100%;
    border-collapse: collapse;
}

.billing-table tr {
    border-bottom: 1px solid #ecf0f1;
    transition: background 0.2s;
}

.billing-table tr:hover {
    background: #f8f9fa;
}

.billing-table td {
    padding: 12px 0;
    font-size: 14px;
}

.billing-table td:first-child {
    color: #7f8c8d;
    font-weight: 500;
}

.billing-table td:last-child {
    font-weight: 600;
    text-align: right;
    color: #2c3e50;
}

/* Tables */
.data-table-container {
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #e8ecef;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #dee2e6;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
    color: #34495e;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.text-center {
    text-align: center;
}

.btn-link {
    color: var(--teal-color);
    text-decoration: none;
    margin-right: 10px;
}

.btn-link:hover {
    text-decoration: underline;
}

.text-danger {
    color: var(--danger-color);
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-suspended {
    background: #fff3cd;
    color: #856404;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #d1ecf1;
    color: #0c5460;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-overdue {
    background: #f8d7da;
    color: #721c24;
}

/* Page Content */
.page-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-actions {
    display: flex;
    justify-content: flex-end;
}

/* Client Summary */
.client-header h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab.active {
    color: var(--teal-color);
    border-bottom-color: var(--teal-color);
    font-weight: 500;
}

.client-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.summary-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.summary-card h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 16px;
    text-transform: uppercase;
}

.info-table {
    width: 100%;
}

.info-table tr {
    border-bottom: 1px solid var(--border-color);
}

.info-table td {
    padding: 8px 0;
}

.info-table td:first-child {
    color: var(--text-light);
    width: 40%;
}

.card-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Project View */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-header h2 {
    font-size: 24px;
}

.project-actions {
    display: flex;
    gap: 10px;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.project-info-card,
.project-status-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-box {
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.status-box.status-success {
    background: var(--success-color);
    color: var(--white);
}

.status-percentage {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.status-label {
    font-size: 16px;
}

.payment-status h4 {
    margin-bottom: 10px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--teal-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 500;
    transition: width 0.3s;
}

.progress-fill.teal {
    background: var(--teal-color);
}

.project-activities {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.activities-info {
    margin-bottom: 15px;
    color: var(--text-light);
}

.pagination {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.page-btn {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-dark);
}

.page-btn.active {
    background: var(--teal-color);
    color: var(--white);
    border-color: var(--teal-color);
}

.note-textarea {
    min-height: 200px;
    resize: vertical;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    transition: border-color 0.3s;
}

.note-textarea:focus {
    border-color: #16a085;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.1);
}

/* Chart Filter Buttons */
.chart-filter-btn {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #7f8c8d;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chart-filter-btn:hover {
    background: #f8f9fa;
    border-color: #16a085;
    color: #16a085;
}

.chart-filter-btn.active {
    background: #16a085;
    border-color: #16a085;
    color: #fff;
}

.chart-filter-btn.active:hover {
    background: #138d75;
    border-color: #138d75;
}

/* Client Area */
.client-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f5f6fa;
}

.client-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    padding: 0;
    color: var(--white);
    box-shadow: 4px 0 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.client-sidebar::-webkit-scrollbar {
    width: 6px;
}

.client-sidebar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}

.client-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

.client-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

.client-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}

.client-logo-top {
    width: 100%;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.client-logo-full {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.client-info-bottom {
    text-align: center;
    padding: 20px 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
    background: rgba(0,0,0,0.1);
}

.client-info-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.client-info-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-info-version {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.client-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    flex-shrink: 0;
}

.logo-content {
    flex: 1;
    min-width: 0;
}

.logo-name {
    font-weight: bold;
    font-size: 18px;
    color: white;
    margin-bottom: 2px;
}

.logo-subtitle {
    font-size: 11px;
    opacity: 0.8;
    color: white;
    margin-bottom: 5px;
}

.logo-version {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    margin-top: 5px;
}

.system-slogan {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    margin: 0 15px 15px;
    background: rgba(231, 76, 60, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: white;
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
}

.system-slogan i {
    color: #e74c3c;
    font-size: 14px;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 25px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}

.sidebar-version {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sidebar-version i {
    font-size: 14px;
}

.sidebar-slogan-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(22, 160, 133, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(26, 188, 156, 0.3);
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-style: italic;
}

.sidebar-slogan-bottom i {
    color: #e74c3c;
    font-size: 13px;
    animation: heartbeat 2s infinite;
}

.version-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    margin-left: 5px;
}

.client-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.client-nav-item {
    color: rgba(255,255,255,0.8);
    padding: 12px 15px;
    text-decoration: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    margin-bottom: 5px;
    font-size: 14px;
}

.client-nav-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
    color: white;
}

.client-nav-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
    font-weight: 600;
}

.client-auth-section {
    margin-top: auto;
    padding: 25px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.1);
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.auth-header i {
    font-size: 18px;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-auth {
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-login {
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border-color: rgba(255,255,255,0.2);
}

.btn-login:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.client-main {
    flex: 1;
    background: #f5f6fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.client-header-area {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 25px 35px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle i {
    font-size: 20px;
    color: white;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.menu-toggle:hover i {
    color: white;
}

.header-info {
    text-align: center;
    flex: 1;
    color: white;
}

.header-greeting {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 4px;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.client-content {
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.client-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.client-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.client-card-icon.success {
    background: var(--success-color);
}

.client-card-icon.danger {
    background: var(--danger-color);
}

.client-card-icon.info {
    background: var(--secondary-color);
}

.client-card-icon.warning {
    background: var(--warning-color);
}

.client-card-info {
    flex: 1;
}

.client-card-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-dark);
}

.client-card-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive - Client Pages */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .domain-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .btn-domain-primary {
        width: 100%;
        justify-content: center;
    }
    
    .domain-actions {
        flex-direction: column;
    }
    
    .btn-domain-secondary {
        width: 100%;
    }
    
    .client-sidebar {
        position: fixed;
        left: -100%;
        transition: left 0.3s;
        z-index: 1000;
        height: 100vh;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3);
    }
    
    .client-sidebar.active {
        left: 0;
    }
    
    .client-content {
        padding: 20px;
    }
    
    .domain-card {
        padding: 25px;
    }
    
    .service-card-header {
        padding: 20px;
    }
    
    .service-card-body {
        padding: 0 20px 15px;
    }
    
    .service-card-footer {
        padding: 15px 20px 20px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    color: white;
    -webkit-text-fill-color: white;
}

.hero-subtitle {
    font-size: 20px;
    color: white;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 1;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.hero-badges .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.3);
}

.hero-badges .badge i {
    color: white;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.badge i {
    color: #667eea;
}

/* Services Section */
.services-section {
    margin-bottom: 50px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: #7f8c8d;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.service-card-header {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: #27ae60;
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-badge.urgent {
    background: #e74c3c;
}

.service-card-body {
    padding: 0 30px 20px;
    flex: 1;
}

.service-card-body h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card-body > p {
    color: #7f8c8d;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #34495e;
    font-size: 14px;
}

.service-features li i {
    color: #27ae60;
    font-size: 12px;
}

.service-card-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #f0f0f0;
}

.btn-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-service:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-service i {
    transition: transform 0.3s;
}

.btn-service:hover i {
    transform: translateX(5px);
}

/* Domain Section */
.domain-section {
    margin-top: 50px;
}

.domain-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.domain-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #ecf0f1;
}

.domain-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
    flex-shrink: 0;
}

.domain-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.domain-header p {
    color: #7f8c8d;
    font-size: 15px;
    line-height: 1.6;
}

.domain-form {
    margin-top: 25px;
}

.domain-input-group {
    margin-bottom: 20px;
}

.domain-input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.domain-input-group label i {
    color: #4facfe;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.domain-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.domain-input:focus {
    outline: none;
    border-color: #4facfe;
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.btn-domain-primary {
    padding: 16px 30px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    white-space: nowrap;
}

.btn-domain-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.domain-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-domain-secondary {
    flex: 1;
    min-width: 200px;
    padding: 14px 24px;
    background: white;
    color: #2c3e50;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-domain-secondary:hover {
    border-color: #4facfe;
    color: #4facfe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 15px;
}

.product-card h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--teal-color);
    margin-bottom: 15px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    background: var(--light-bg);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.category-tab.active {
    background: var(--teal-color);
    color: var(--white);
}

/* Order Review */
.order-review {
    max-width: 1200px;
    margin: 0 auto;
}

.review-section {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.review-section h3 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.review-total {
    text-align: right;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
}

.promo-code-section {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input-group input {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: fixed;
        left: -100%;
        transition: left 0.3s;
        z-index: 1000;
    }
    
    .admin-sidebar.active {
        left: 0;
    }
    
    .dashboard-row {
        grid-template-columns: 1fr;
    }
    
    .project-details-grid {
        grid-template-columns: 1fr;
    }
    
    .client-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .header-search {
        display: none;
    }
    
    .user-menu {
        padding: 6px 12px;
    }
    
    .user-info {
        display: none;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 32px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.domain-card,
.hero-section {
    animation: fadeIn 0.6s ease-out;
}

/* Focus states for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
}

/* Settings Page */
.settings-container {
    max-width: 1000px;
}

.settings-form {
    margin-top: 25px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.setting-group {
    display: flex;
    flex-direction: column;
}

.setting-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 14px;
}

.setting-group label i {
    color: #16a085;
    font-size: 14px;
}

.form-control-modern {
    padding: 14px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8f9fa;
    font-family: inherit;
}

.form-control-modern:focus {
    outline: none;
    border-color: #16a085;
    background: white;
    box-shadow: 0 0 0 4px rgba(22, 160, 133, 0.1);
}

.setting-group small {
    margin-top: 6px;
    color: #7f8c8d;
    font-size: 12px;
}

.settings-actions {
    display: flex;
    gap: 15px;
    padding-top: 25px;
    border-top: 2px solid #ecf0f1;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #16a085;
}

.info-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.info-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

/* Layout Modal */
.layout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.layout-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.layout-modal-header {
    padding: 20px 25px;
    border-bottom: 2px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.layout-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.layout-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s;
}

.layout-modal-close:hover {
    background: #f0f0f0;
    color: #2c3e50;
}

.layout-modal-body {
    padding: 25px;
}

.layout-section {
    margin-bottom: 30px;
}

.layout-section h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.layout-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.layout-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.3s;
}

.layout-option label:hover {
    background: #f8f9fa;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input[type="checkbox"]:checked + .toggle-switch {
    background: #16a085;
}

input[type="checkbox"]:checked + .toggle-switch::after {
    left: 26px;
}

input[type="checkbox"] {
    display: none;
}

.option-label {
    flex: 1;
    color: #2c3e50;
    font-weight: 500;
}

.theme-colors {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.theme-color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.theme-color:hover {
    transform: scale(1.1);
}

.theme-color.active {
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.3);
}

.theme-color.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.layout-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 2px solid #ecf0f1;
}

.layout-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    margin-right: 10px;
}

.layout-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Submenu Navigation */
.nav-item-group {
    position: relative;
}

.nav-item-parent {
    position: relative;
}

.nav-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.3s;
}

.nav-item-parent.active .nav-arrow {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    background: rgba(0,0,0,0.2);
    padding-left: 20px;
    margin-top: 5px;
}

.nav-item-parent.active + .nav-submenu {
    display: block;
}

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.nav-subitem:hover {
    background: rgba(255,255,255,0.1);
    border-left-color: #1abc9c;
    padding-left: 25px;
}

.nav-subitem.active {
    background: rgba(22, 160, 133, 0.2);
    border-left-color: #1abc9c;
    font-weight: 600;
}

.nav-subitem i {
    width: 16px;
    text-align: center;
    font-size: 12px;
}

/* Admin Footer */
.admin-footer {
    background: white;
    border-top: 2px solid #ecf0f1;
    padding: 20px 35px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7f8c8d;
    font-size: 14px;
}

.footer-separator {
    color: #ddd;
}

/* User IP Display */
.user-ip {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-ip i {
    font-size: 10px;
}

/* Form Styles */
.form-container {
    max-width: 1000px;
}

.modern-form {
    margin-top: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-actions {
    display: flex;
    gap: 12px;
    padding-top: 25px;
    border-top: 2px solid #ecf0f1;
}

/* Print styles */
@media print {
    .client-sidebar,
    .admin-sidebar,
    .admin-header,
    .client-header-area,
    .btn,
    .menu-toggle {
        display: none !important;
    }
    
    .client-main,
    .admin-main {
        margin: 0;
        padding: 20px;
    }
}
