/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700;900&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1E40AF;
    --primary-light: #2563EB;
    --secondary-color: #F97316;
    --cta-color: #F97316;
    --success-color: #10B981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #F9FAFB;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--cta-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #EA580C;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark);
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    margin-bottom: 2rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat p {
    opacity: 0.9;
}

/* Device Mockups */
.devices-mockup {
    position: relative;
    width: 100%;
    height: 600px;
}

.device {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s;
}

.device:hover {
    transform: scale(1.02);
}

.device-screen {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

/* Laptop */
.device.laptop {
    left: 0;
    top: 50px;
    width: 380px;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    padding: 12px 12px 35px;
    border-radius: 16px;
    z-index: 1;
}

.device.laptop .device-screen {
    height: 240px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.device.laptop::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 10px;
    background: linear-gradient(to bottom, #2d3748, #1a202c);
    border-radius: 0 0 8px 8px;
}

/* Tablet */
.device.tablet {
    right: 50px;
    top: 20px;
    width: 280px;
    background: linear-gradient(145deg, #4a5568, #2d3748);
    padding: 18px 18px 18px;
    border-radius: 20px;
    z-index: 2;
}

.device.tablet .device-screen {
    height: 380px;
    padding: 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #ddd6fe 100%);
}

/* Mobile */
.device.mobile {
    right: 10px;
    bottom: 20px;
    width: 180px;
    background: linear-gradient(145deg, #374151, #1f2937);
    padding: 12px;
    border-radius: 30px;
    z-index: 3;
}

.device.mobile .device-screen {
    height: 360px;
    padding: 20px 15px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

/* Demo UI Components */
.demo-ui {
    width: 100%;
    height: 100%;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.demo-logo {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
}

.demo-timer {
    font-family: 'Roboto', monospace;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.demo-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
}

.stat-icon {
    font-size: 16px;
    margin-bottom: 4px;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-list {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 12px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.list-item:last-child {
    border-bottom: none;
}

.emp-name {
    font-size: 12px;
    color: #1e293b;
    font-weight: 500;
}

.emp-time {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.emp-time.green {
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
}

.emp-time.yellow {
    color: #d97706;
    background: rgba(245, 158, 11, 0.1);
}

/* Tablet Demo UI */
.demo-header-sm {
    font-weight: 700;
    font-size: 18px;
    color: #5b21b6;
    margin-bottom: 20px;
    text-align: center;
}

.demo-chart {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    height: 180px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #8b5cf6, #a78bfa);
    border-radius: 8px 8px 0 0;
    min-height: 30px;
}

.demo-total {
    background: rgba(255, 255, 255, 0.8);
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.total-label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.total-hours {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #7c3aed;
}

/* Mobile Demo UI */
.demo-time {
    font-size: 42px;
    font-weight: 700;
    color: #92400e;
    text-align: center;
    margin: 20px 0;
    font-family: 'Roboto', sans-serif;
}

.demo-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #78350f;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.green {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.demo-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.demo-btn {
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.demo-btn.orange {
    background: #f59e0b;
    color: white;
}

.demo-btn.gray {
    background: rgba(0, 0, 0, 0.1);
    color: #78350f;
}

.demo-info-sm {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
}

.info-row span:first-child {
    color: #78350f;
}

.info-row span:last-child {
    font-weight: 600;
    color: #92400e;
}

.info-row .green {
    color: #059669;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--light-gray);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
}

.plan-price {
    margin: 1.5rem 0;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.period {
    color: var(--gray);
    font-size: 1rem;
}

.plan-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

/* Signup Section */
.signup {
    padding: 5rem 0;
    background: var(--white);
}

.signup-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--light-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.signup-box h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.signup-box > p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.form-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dashboard Styles */
.dashboard-body {
    background: var(--light-gray);
    min-height: 100vh;
}

.dashboard-nav {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left h2 {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 600;
}

.dropdown {
    position: relative;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-gray);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.avatar {
    font-size: 1.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    min-width: 200px;
    display: none;
    margin-top: 0.5rem;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
}

.dropdown-menu hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid var(--light-gray);
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.dashboard-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.location {
    color: var(--gray);
}

.status-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.date-time {
    text-align: center;
    margin-bottom: 2rem;
}

.current-time {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.status-indicator {
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--light-gray);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.125rem;
}

.status-icon {
    font-size: 1.5rem;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-checkin, .btn-checkout {
    padding: 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-checkin {
    background: var(--success-color);
    color: var(--white);
}

.btn-checkin:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
}

.btn-checkout {
    background: var(--danger-color);
    color: var(--white);
}

.btn-checkout:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-checkin:disabled, .btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 2rem;
}

.today-info {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--gray);
}

.info-value {
    font-weight: bold;
}

.info-value.highlight {
    color: var(--success-color);
    font-size: 1.25rem;
}

.summary-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.summary-card h3 {
    margin-bottom: 1.5rem;
}

.week-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.week-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.week-item.absent {
    opacity: 0.5;
}

.week-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
    text-align: right;
    font-size: 1.125rem;
}

/* Admin Dashboard */
.dashboard-tabs {
    display: flex;
    background: var(--white);
    padding: 0 2rem;
    box-shadow: var(--box-shadow);
    gap: 1rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-info p {
    color: var(--gray);
}

.table-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    background: var(--light-gray);
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.text-center {
    text-align: center;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge.success {
    background: #d1fae5;
    color: #065f46;
}

.badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Loading & Modals */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-icon.success {
    color: var(--success-color);
}

.modal-icon.error {
    color: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-tabs {
        overflow-x: auto;
    }
    
    .subscription-badge {
        display: none;
    }
}
