
/* 🔐 Universal Passcode Generator - Timestamp Specific Styles */

/* Timestamp Step Common Elements */
select, input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 20px;
    transition: border-color 0.3s;
}

select:focus, input:focus {
    outline: none;
    border-color: #4CAF50;
}

.btn {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 20px 32px !important;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin: 8px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    letter-spacing: 0.5px;
    text-transform: none;
    min-height: 56px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    background: linear-gradient(45deg, #66BB6A, #4CAF50);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, #FF9800, #F57C00);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #FFB74D, #FF9800);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(45deg, #FFD54F, #FFC107);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.hidden {
    display: none;
}

.controls-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.control-group {
    margin-bottom: 20px;
}

.control-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.control-item {
    flex: 1;
    min-width: 160px;
}

.output-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0 5px 0;
}

.status-message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
    text-align: center;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.warning-section {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.warning-section h4 {
    color: #f57c00;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.warning-section ul {
    margin: 0;
    padding-left: 20px;
    color: #ef6c00;
    font-size: 14px;
    line-height: 1.6;
}

.info-section {
    background: #e3f2fd;
    border: 1px solid #2196F3;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.info-section h4 {
    color: #1976D2;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.info-section ul {
    margin: 0;
    padding-left: 20px;
    color: #1565C0;
    font-size: 14px;
    line-height: 1.6;
}

/* Timestamp Container - Unique to this component */
.timestamp-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 1px;
    z-index: 100;
}

.timestamp-header {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 30px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 15px 15px 0 0;
}

.timestamp-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.timestamp-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

.timestamp-main-content {
    padding: 10px 10px;
    width: 100%;
    max-width: 1000px;
    align-items: center;
    min-width: 0;
    flex: 1;
}

/* Center the timestamp heading and style to match others */
.timestamp-container h3 {
    text-align: center !important;
    color: #666 !important;
    font-style: italic !important;
    font-weight: bold !important;
}

        .timestamp-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px 1px;
            margin: 15px 0 10px 0;
            width: 100%;
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
            justify-content: center;
        }

        .timestamp-digit {
            padding: 4px;
            border-radius: 8px;
            text-align: center;
            font-weight: 600;
            font-size: 24px;
            border: 2px solid #4CAF50;
            position: relative;
            transition: all 0.3s;
            font-family: 'Consolas', 'Monaco', 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace !important;
            min-height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
            width: 28px;
            color: #000000 !important;
            font-style: normal !important;
            background: linear-gradient(45deg, #e8f5e8, #c8e6c8);
            border-color: #4CAF50;
        }

        .timestamp-digit::before {
            content: attr(data-index);
            position: absolute;
            top: -10px;
            left: 50%;
            transform: translateX(-50%);
            background: #2196f3;
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 10px;
            font-weight: bold;
            min-width: 16px;
        }

        .timestamp-digit:hover {
            background: #e8f5e8;
            transform: scale(1.05);
        }

        /* Character type specific styling for Base64 timestamps */
        .timestamp-digit.char-uppercase {
            background: linear-gradient(45deg, #e8f5e8, #c8e6c8);
            border-color: #4CAF50;
            color: #2e7d32;
        }

        .timestamp-digit.char-lowercase {
            background: linear-gradient(45deg, #e3f2fd, #bbdefb);
            border-color: #2196F3;
            color: #1565c0;
        }

        .timestamp-digit.char-number {
            background: linear-gradient(45deg, #fff3e0, #ffcc80);
            border-color: #FF9800;
            color: #f57c00;
        }

        /* Hover effects for character types */
        .timestamp-digit.char-uppercase:hover {
            background: linear-gradient(45deg, #c8e6c8, #a5d6a7);
        }

        .timestamp-digit.char-lowercase:hover {
            background: linear-gradient(45deg, #bbdefb, #90caf9);
        }

        .timestamp-digit.char-number:hover {
            background: linear-gradient(45deg, #ffcc80, #ffb74d);
        }

        .timestamp-label {
            font-size: 14px;
            color: #666;
            margin-bottom: 15px;
            text-align: center;
        }

/* Mobile responsive for timestamp - Enhanced */
@media (max-width: 768px) {
    .timestamp-container {
        margin: 0;
        border-radius: 10px;
        position: static;
    }

    .timestamp-header {
        padding: 20px 15px;
        border-radius: 10px 10px 0 0;
    }

    .timestamp-header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .timestamp-header p {
        font-size: 1rem;
    }

    .timestamp-main-content {
        padding: 15px;
    }

    .controls-section {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .control-row {
        flex-direction: column;
        gap: 15px;
    }

    .control-item {
        min-width: 100%;
    }

    select, input {
        font-size: 16px;
        padding: 12px;
    }

    .btn {
        padding: 18px 24px;
        font-size: 16px;
        width: 100%;
        margin: 8px 0;
        border-radius: 10px;
        min-height: 52px;
    }

    .timestamp-grid {
        gap: 6px 2px;
        margin: 12px 0;
    }

    .timestamp-digit {
        width: 24px;
        min-height: 40px;
        font-size: 18px;
        padding: 3px;
        border-radius: 6px;
    }

    .timestamp-digit::before {
        font-size: 8px;
        padding: 1px 4px;
        top: -8px;
    }

    .timestamp-label {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .warning-section, .info-section {
        padding: 15px;
        margin: 15px 0;
    }

    .warning-section h4, .info-section h4 {
        font-size: 16px;
    }

    .warning-section ul, .info-section ul {
        font-size: 13px;
        padding-left: 15px;
    }
}

@media (max-width: 480px) {
    .timestamp-header {
        padding: 15px 10px;
    }

    .timestamp-header h1 {
        font-size: 1.5rem;
    }

    .timestamp-main-content {
        padding: 10px;
    }

    .controls-section {
        padding: 12px;
    }

    .timestamp-grid {
        gap: 4px 1px;
    }

    .timestamp-digit {
        width: 22px;
        min-height: 36px;
        font-size: 16px;
    }

    select, input {
        font-size: 16px;
        padding: 10px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .warning-section, .info-section {
        padding: 12px;
    }
}
