﻿/* Modern Time-Stamper Styles */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 0.5rem;
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s ease;
}

    .navbar-brand:hover {
        transform: scale(1.05);
    }

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

    .navbar-dark .navbar-nav .nav-link:hover {
        color: white;
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--border-radius);
    }

/* Cards */
.card {
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    }

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* Timestamp Display */
#timestamp {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    letter-spacing: 1px;
    border: 3px solid var(--primary-color);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

    #timestamp:focus {
        border-color: var(--success-color);
        box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
    }

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: white;
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

.btn-outline-secondary {
    border: 2px solid #6c757d;
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 2px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    }

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-select-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1.25rem;
}

    .alert i {
        font-size: 1.2rem;
    }

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Buzzword Section */
.bg-warning.bg-opacity-10 {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

    footer a {
        transition: color 0.3s ease;
    }

        footer a:hover {
            color: var(--info-color) !important;
        }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-out;
}

/* Copy Success Animation */
@keyframes pulseGreen {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

.btn-success:not(:disabled) {
    animation: pulseGreen 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-6 {
        font-size: 2rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15rem;
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Print Styles */
@media print {
    .navbar, footer, .btn, #contact {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #212529;
        --dark-color: #f8f9fa;
    }

    body {
        background-color: #1a1a1a;
        color: #f8f9fa;
    }

    .card {
        background-color: #2d2d2d;
        color: #f8f9fa;
    }

    .form-control,
    .form-select {
        background-color: #3d3d3d;
        color: #f8f9fa;
        border-color: #4d4d4d;
    }

    #timestamp {
        background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
        color: #f8f9fa;
    }

    .bg-light {
        background-color: #2d2d2d !important;
    }
}

/* Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 3px solid rgba(13, 110, 253, 0.25);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 999;
}

    .skip-to-content:focus {
        left: 0;
        padding: 1rem;
        background: var(--primary-color);
        color: white;
    }

/* ========================================
   VISIBILITY FIXES - ENHANCED VERSION
   ======================================== */

/* Make placeholder text MUCH more visible */
::placeholder {
    color: #343a40 !important; /* Dark gray instead of light gray */
    opacity: 1 !important;
    font-weight: 600 !important;
}

:-ms-input-placeholder {
    color: #343a40 !important;
    font-weight: 600 !important;
}

::-ms-input-placeholder {
    color: #343a40 !important;
    font-weight: 600 !important;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
    color: #343a40 !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
    color: #343a40 !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

/* Specific fix for timestamp field placeholder */
#timestamp::placeholder {
    color: #212529 !important; /* Very dark for timestamp */
    opacity: 1 !important;
    font-weight: 700 !important;
}

/* Make form control text darker and more visible */
.form-control,
.form-select {
    color: #212529 !important;
    font-weight: 500 !important;
}

    /* ========================================
   DROPDOWN OPTIONS VISIBILITY FIX
   ======================================== */

    /* Make dropdown options very visible */
    select,
    select option,
    .form-select,
    .form-select option {
        color: #212529 !important; /* Very dark text */
        background-color: #ffffff !important; /* White background */
        font-weight: 500 !important;
    }

        /* Dropdown option hover state */
        select option:hover,
        .form-select option:hover {
            background-color: #0d6efd !important; /* Blue background on hover */
            color: #ffffff !important; /* White text on hover */
        }

        /* Selected option in dropdown */
        select option:checked,
        .form-select option:checked {
            background-color: #0d6efd !important;
            color: #ffffff !important;
            font-weight: 600 !important;
        }

/* Specific fixes for your dropdowns */
#action,
#type,
#fileExtension,
#timestampFormat {
    color: #212529 !important;
    font-weight: 600 !important;
    background-color: #ffffff !important;
}

    #action option,
    #type option,
    #fileExtension option,
    #timestampFormat option {
        color: #212529 !important;
        font-weight: 500 !important;
        background-color: #ffffff !important;
        padding: 8px !important;
    }

        /* Make the "-- Select --" option visible too */
        #action option[value=""],
        #type option[value=""],
        #fileExtension option[value=""] {
            color: #6c757d !important; /* Gray for default option */
            font-style: italic;
        }

/* ========================================
   END DROPDOWN FIX
   ======================================== */

/* Ensure disabled/readonly fields are still visible */
.form-control:disabled,
.form-control[readonly] {
    background-color: #e9ecef !important;
    color: #495057 !important;
    opacity: 1;
}

/* reCAPTCHA text visibility fix */
.text-muted,
small.text-muted {
    color: #495057 !important;
    opacity: 1;
    font-weight: 500 !important;
}

    /* Specific fix for reCAPTCHA footer text */
    .text-muted a {
        color: #0d6efd !important;
        text-decoration: underline;
        font-weight: 600 !important;
    }

        .text-muted a:hover {
            color: #0a58ca !important;
        }

/* Hero section text shadow for better readability */
.bg-gradient .lead {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Ensure all white text on colored backgrounds has shadow */
.text-white {
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4) !important;
}

/* reCAPTCHA container background for better visibility */
.bg-light.rounded {
    background-color: #f8f9fa !important;
    border: 2px solid #dee2e6 !important;
}