/* Argonar Construction - Main Stylesheet */

:root {
    --primary: #1e293b;
    --primary-light: #334155;
    --secondary: #0ea5e9;
    --secondary-light: #38bdf8;
    --accent: #f59e0b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --surface: #ffffff;
    --bg: #f1f5f9;
    --border: #e2e8f0;
    --dark: #0f172a;
    --light: #f8fafc;
    --sidebar-width: 260px;
    --navbar-height: 60px;
}

/* Layout */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    min-height: 100vh;
    color: #334155;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    z-index: 1040;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-brand {
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand h5 {
    color: #fff;
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-brand img {
    width: 36px;
    height: 36px;
}

.sidebar-nav {
    padding: 0.75rem 0;
}

.sidebar-nav .nav-section {
    padding: 0.75rem 1.25rem 0.4rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    margin: 2px 0.75rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    border-left: none;
}

.sidebar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 12px rgba(14,165,233,0.08);
}

.sidebar-nav .nav-link.active {
    color: #fff;
    background: rgba(14,165,233,0.15);
    border-left: none;
    font-weight: 600;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    opacity: 0.85;
}

.sidebar-nav .nav-link.active i {
    opacity: 1;
    color: var(--secondary-light);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Top Navbar */
.top-navbar {
    height: var(--navbar-height);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.top-navbar .page-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* Content Area */
.content-area {
    padding: 1.5rem;
}

/* Cards */
.stat-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--surface);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
}

.card-custom {
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    background: var(--surface);
}

.card-custom .card-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    border-radius: 14px 14px 0 0 !important;
    padding: 1rem 1.25rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px rgba(30,41,59,0.25);
}

.btn-secondary-custom {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary-custom:hover {
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
    color: #fff;
    box-shadow: 0 2px 8px rgba(14,165,233,0.3);
}

.btn-outline-primary {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-secondary {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-warning {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-success {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-outline-danger {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-warning {
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-success {
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Tables */
.table-custom {
    border-radius: 14px;
    overflow: hidden;
}

.table-custom thead th {
    background: var(--primary-light);
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: none;
    padding: 0.75rem;
}

.table-custom tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    font-size: 0.875rem;
    border-color: var(--border);
}

.table-responsive {
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

/* Tool Hub Cards */
.tool-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    background: var(--surface);
    position: relative;
}

.tool-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(14,165,233,0.12), 0 0 0 2px var(--secondary);
    transform: translateY(-3px);
    color: inherit;
}

.tool-card .tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
}

/* Badge */
.badge-coming-soon {
    background: #94a3b8;
    color: #fff;
    font-size: 0.65rem;
    padding: 0.25em 0.6em;
    border-radius: 6px;
}

/* Flash Messages */
.flash-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    max-width: 400px;
}

.flash-container .alert {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border: none;
    border-radius: 10px;
    backdrop-filter: blur(8px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
}

/* Auth pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #0ea5e9);
}

.auth-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card .auth-logo img {
    height: 40px;
}

/* Mobile */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1035;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* Pricing Cards */
.pricing-card {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 30px rgba(14,165,233,0.12);
    transform: translateY(-4px);
}

.pricing-card-featured {
    border-color: var(--secondary);
    box-shadow: 0 4px 20px rgba(14,165,233,0.10);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.pricing-price .price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.pricing-price .price-period {
    font-size: 0.9rem;
    color: #94a3b8;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* Tool Lock Badge */
.tool-lock-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    color: var(--secondary);
    background: rgba(14,165,233,0.1);
    border-radius: 12px;
    font-weight: 600;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

/* Print */
@media print {
    .sidebar, .top-navbar, .no-print {
        display: none !important;
    }
    .main-content {
        margin-left: 0 !important;
    }
    .content-area {
        padding: 0 !important;
    }
}
