/*
Theme Name: Domaindotin Connect
Description: A premium, modern dashboard theme for employee management.
Author: Antigravity
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: punch-hrm
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #10B981;
    --primary-light: #ECFDF5;
    --primary-dark: #064E3B;
    --secondary: #64748b;
    --accent: #FBBF24;
    --success: #10B981;
    --warning: #FBBF24;
    --danger: #ef4444;
    --background: #F8FAFC;
    --sidebar-bg: #0A1210;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: rgba(226, 232, 240, 0.7);
    --glass-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    --glass-glow: 0 0 20px rgba(16, 185, 129, 0.1);
    --radius: 20px;
    --sidebar-width: 280px;
    --header-height: 80px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-theme {
    --background: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(51, 65, 85, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.2);
}

.d-connect-logo {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 20px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text span {
    color: var(--primary);
    font-size: 14px;
    opacity: 0.9;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-subtitle {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: -2px;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.nav-link i {
    font-size: 20px;
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pro-badge-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px;
}

.badge-label {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.pro-badge-card p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 12px;
}

.mini-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

.mini-progress .fill {
    height: 100%;
    background: var(--primary);
    border-radius: 100px;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle-btn {
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.menu-toggle-btn:hover {
    color: var(--primary);
}

.header-page-info .header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.header-page-info .header-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-text {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 8px;
    border-radius: 10px;
}

.tool-icon-btn:hover {
    background: white;
    box-shadow: var(--glass-shadow);
    color: var(--primary);
}

.notification-indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border: 2px solid white;
    border-radius: 50%;
}

.user-profile-group {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 24px;
    border-left: 1px solid var(--border);
}

.user-meta {
    text-align: right;
}

.u-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.u-role {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.u-avatar-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    padding: 2px;
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
}

.u-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.logout-minimal-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.logout-minimal-btn:hover {
    color: var(--danger);
}

/* Dashboard Content */
.content-body {
    padding: 32px 40px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

/* Cards & Components */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--glass-shadow);
}

/* Welcome Hero */
.welcome-hero-card {
    background: linear-gradient(135deg, var(--primary-dark), #0A1A0A);
    border-radius: 40px;
    padding: 48px;
    position: relative;
    overflow: visible;
    /* Allowed for menu visibility */
    color: white;
    box-shadow: 0 30px 60px -15px rgba(6, 78, 59, 0.3);
    margin-bottom: 40px;
}

.hero-bg-elements-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 40px;
    pointer-events: none;
    z-index: 0;
}

.hero-bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 10;
}

.hero-date {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(16, 185, 129, 0.6);
    margin-bottom: 12px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-title .highlight {
    background: linear-gradient(to right, #6EE7B7, #10B981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
}

.hero-badge i {
    width: 14px;
    color: var(--primary);
}

.hero-badge span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.btn-premium-punch {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.3);
    transition: var(--transition);
}

.btn-premium-punch:hover {
    background: #10B981;
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

.btn-premium-punch.active,
.btn-premium-punch.active:hover {
    background: #ef4444 !important;
    color: white !important;
    box-shadow: 0 15px 30px rgba(239, 68, 68, 0.4);
}

.btn-premium-punch.active:active {
    transform: translateY(2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.2);
}

.hero-stats-row {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 10;
}

.h-stat-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.h-stat-box:hover {
    background: rgba(255, 255, 255, 0.08);
}

.h-stat-box.inactive {
    opacity: 0.5;
    border-style: dashed;
}

.h-icon {
    width: 52px;
    height: 52px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-stat-box.break .h-icon {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent);
}

.h-label {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.h-value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Stats Premium Grid */
.stats-premium-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.stat-card-premium {
    background: #FFFFFF;
    border-radius: 40px;
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.08);
}

.scp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.scp-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.scp-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scp-value {
    font-size: 44px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.scp-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.scp-bar-bg {
    height: 6px;
    background: #F1F5F9;
    border-radius: 100px;
    overflow: hidden;
}

.scp-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    border-radius: 100px;
}

/* Performance Card */
.performance-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--glass-shadow);
}

.pc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.pc-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.pc-icon {
    padding: 10px;
    background: #F8FAFC;
    border-radius: 14px;
    color: var(--text-muted);
}

.telemetry-wrapper {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.telemetry-circle {
    position: relative;
    width: 220px;
    height: 220px;
}

.telemetry-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.telemetry-circle circle {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
}

.bg-track {
    stroke: #F1F5F9;
    stroke-width: 10;
}

.progress-track {
    stroke: var(--primary);
    stroke-dasharray: 100;
    stroke-width: 12;
    filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.4));
}

.telemetry-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.t-value {
    display: block;
    font-size: 40px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}

.t-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.telemetry-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.ts-box {
    background: #F8FAFC;
    padding: 16px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
}

.ts-box.highlight {
    background: var(--primary-light);
    border-color: rgba(16, 185, 129, 0.1);
}

.ts-label {
    font-size: 8px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ts-box.highlight .ts-label {
    color: var(--primary);
}

.ts-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.progress-details-list {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pd-header {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.pd-bar {
    height: 8px;
    background: #F1F5F9;
    border-radius: 100px;
    overflow: hidden;
}

.pd-bar .fill {
    height: 100%;
    background: var(--primary);
    border-radius: 100px;
}

.pd-bar .fill.warning {
    background: var(--warning);
}

.pd-bar .fill.accent {
    background: #6366F1;
}

.btn-report-full {
    width: 100%;
    margin-top: 40px;
    background: var(--sidebar-bg);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-report-full:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Forms & Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 14px 20px;
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(6, 78, 59, 0.05);
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 24px;
}

/* Page Specific Overrides & Complements */
.job-desk-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.inner-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inner-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.inner-nav-item:hover,
.inner-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.inner-nav-item.active {
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.08);
}

.desk-content-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--glass-shadow);
}

/* Announcements */
.announcement-list {
    margin-top: 32px;
}

.announcement-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .content-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .punch-action-area {
        position: static;
        transform: none;
        margin-top: 24px;
    }
}

/* Button Helpers */
.button-success {
    background-color: #4ba456 !important;
    color: white !important;
}

.button-danger {
    background-color: #ef4444 !important;
    color: white !important;
}

.button-success:hover,
.button-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}