/* ========================================
   SHIFT CALCULATOR - COMPLETE STYLESHEET
   File: styles.css
   Version: 1.0
   Description: Standalone CSS file for Shift Calculator
   ======================================== */

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Navigation Bar */
nav {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #333;
}

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

/* Header Section */
header {
    text-align: center;
    color: white;
    padding: 40px 20px;
}

h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 10px;
}

.header-keywords {
    font-size: 0.9em;
    opacity: 0.85;
}

/* Ad Zones */
.ad-zone {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    color: #999;
    font-size: 0.9em;
}

.ad-zone-horizontal {
    min-height: 90px;
}

.ad-zone-sidebar {
    min-height: 250px;
    margin: 20px 0;
}

/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
}

.calculator-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.calculator-icon {
    font-size: 2.5em;
}

.calculator-title {
    flex: 1;
}

.calculator-title h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 8px;
}

.calculator-title p {
    color: #666;
    font-size: 1em;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.95em;
}

input[type="time"],
input[type="number"],
input[type="date"],
input[type="text"],
select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
}

input:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input::placeholder {
    color: #999;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* Buttons */
.calculate-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.calculate-btn:active {
    transform: translateY(0);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.button-group button {
    flex: 1;
    min-width: 150px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1em;
}

.export-btn {
    background: #27ae60;
    color: white;
}

.export-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.clear-btn {
    background: #95a5a6;
    color: white;
}

.clear-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

/* Results Section */
.results {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 30px;
    margin-top: 25px;
    display: none;
}

.results.show {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-section {
    margin-bottom: 30px;
}

.results-section:last-child {
    margin-bottom: 0;
}

.results-section h3 {
    color: #667eea;
    font-size: 1.4em;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.result-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.result-card-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.result-card-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #555;
}

.result-value {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1em;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    text-align: center;
}

.highlight-box .big-number {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 8px;
}

.highlight-box .label {
    font-size: 1.1em;
    opacity: 0.95;
}

/* Shift List */
.shift-list {
    margin-top: 20px;
}

.shift-item {
    background: #f8f9fa;
    border-left: 5px solid #667eea;
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.shift-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.shift-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.shift-date {
    font-weight: 600;
    color: #333;
}

.shift-hours {
    color: #667eea;
    font-weight: 700;
}

.shift-details {
    font-size: 0.9em;
    color: #666;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

.badge-overtime {
    background: #ff9800;
    color: white;
}

.badge-regular {
    background: #4caf50;
    color: white;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Summary & Statistics */
.total-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 20px;
}

.total-summary h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    background: rgba(255,255,255,0.2);
    padding: 18px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.summary-item:hover {
    background: rgba(255,255,255,0.25);
}

.summary-value {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.summary-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.advanced-stats {
    background: rgba(255,255,255,0.15);
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
}

.advanced-stats h4 {
    margin-bottom: 15px;
    font-size: 1.2em;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.stat-row:last-child {
    border-bottom: none;
}

.projection-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 20px;
}

.projection-card h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.projection-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
}

.projection-row:last-child {
    border-bottom: none;
}

.projection-row span,
.projection-row strong {
    color: #333;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.content-section h2 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 20px;
}

.content-section h3 {
    color: #333;
    font-size: 1.5em;
    margin: 25px 0 15px 0;
}

.content-section p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-section ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
    color: #555;
}

.content-section strong {
    color: #667eea;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h4 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature-card p {
    color: #555;
    font-size: 0.95em;
}

/* Info Box */
.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.info-box p {
    margin: 0;
    color: #1565c0;
    font-weight: 500;
}

/* Footer */
footer {
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: white;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9em;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .calculator-card {
        padding: 20px;
    }

    .calculator-header {
        flex-direction: column;
        text-align: center;
    }

    .calculator-title h2 {
        font-size: 1.5em;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 25px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group button {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    .calculator-card {
        padding: 15px;
    }

    .result-card-value {
        font-size: 1.5em;
    }

    .highlight-box .big-number {
        font-size: 2em;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .ad-zone,
    .button-group,
    .calculate-btn {
        display: none;
    }

    body {
        background: white;
    }

    .calculator-card,
    .content-section {
        box-shadow: none;
        page-break-inside: avoid;
    }
}