/* SecureSphereLabs Premium Light Theme */
:root {
    /* Backgrounds */
    --bg-main: #f8fafc;
    /* Slate 50 */
    --bg-card: #ffffff;

    /* Branding Colors */
    --primary-blue: #2563eb;
    /* Royal Blue */
    --primary-hover: #1d4ed8;
    --accent-cyan: #06b6d4;
    /* Cyan 500 */

    /* Typography */
    --text-primary: #1e293b;
    /* Slate 800 */
    --text-secondary: #64748b;
    /* Slate 500 */
    --text-white: #ffffff;

    /* State */
    --success: #10b981;
    /* Emerald 500 */
    --danger: #ef4444;
    /* Red 500 */
    --warning: #f59e0b;
    /* Amber 500 */

    /* UI Elements */
    --border-radius: 16px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --border-light: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1;
    padding: 40px 0;
}

/* Components */
.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: var(--shadow-sm);
    gap: 8px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3b82f6 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-danger {
    background-color: #fff;
    color: var(--danger);
    border: 1px solid #fee2e2;
}

.btn-danger:hover {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-warning {
    background-color: #fff7ed;
    color: var(--warning);
    border: 1px solid #ffedd5;
}

.btn-warning:hover {
    background-color: #ffedd5;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #d1fae5;
    color: #047857;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fee2e2;
    color: #b91c1c;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-size: 22px;
    letter-spacing: -0.03em;
}

.nav-brand span {
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background-color: #ffffff;
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

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

th,
td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background-color: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
}

td {
    color: var(--text-primary);
    font-size: 14px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.badge-success {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.badge-warning {
    background-color: #fff7ed;
    color: #d97706;
    border: 1px solid #ffedd5;
}

/* Progress Bar */
.progress {
    height: 10px;
    background-color: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--primary-blue) 100%);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 24px;
}

.mb-20 {
    margin-bottom: 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .nav-container {
        flex-direction: column;
        gap: 16px;
    }

    .card {
        padding: 24px;
    }
}