* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f9f5 0%, #f8faf8 100%);
    color: #2d3748;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #81c784;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 0 20px 0;
}

.logo {
    text-align: center;
    margin-bottom: 25px;
    width: 100%;
}

.logo h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.125rem;
    color: #4caf50;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    padding: 5px 0;
    overflow-x: visible;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 12px;
    z-index: 1000;
    top: 100%;
    left: 0;
    margin-top: 5px;
    border: 2px solid #a5d6a7;
    overflow: hidden;
}

.dropdown-content a {
    color: #388e3c;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 15px;
}

.dropdown-content a:hover {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease;
}

.nav-btn {
    padding: 10px 20px;
    border: 2px solid #c8e6c9;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #388e3c;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

.nav-btn:hover {
    background: #e8f5e9;
    border-color: #66bb6a;
    color: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.nav-btn.active {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    border-color: #4caf50;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Security Badge */
.security-badge {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.badge-icon {
    font-size: 1.5rem;
}

/* Tool Sections */
.tool-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tool-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-header {
    margin-bottom: 25px;
}

.tool-header h2 {
    font-size: 2.25rem;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.tool-header p {
    color: #558b2f;
    font-size: 1.125rem;
    font-weight: 500;
}

/* Toolbar */
.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: 2px solid #a5d6a7;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    color: #388e3c;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.btn:hover {
    background: #e8f5e9;
    border-color: #66bb6a;
    color: #2e7d32;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    border-color: #4caf50;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5cb860 0%, #43a047 100%);
    border-color: #43a047;
    color: white;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.35);
}

.btn-danger {
    color: #e53935;
    border-color: #ef9a9a;
}

.btn-danger:hover {
    background: #e53935;
    border-color: #e53935;
    color: white;
}

.select-input {
    padding: 8px 16px;
    border: 2px solid #a5d6a7;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    outline: none;
    color: #388e3c;
    font-weight: 600;
    transition: all 0.3s ease;
}

.select-input:focus {
    border-color: #66bb6a;
    box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.15);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #586069;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4caf50;
}

/* Workspace */
.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.workspace.single-panel {
    grid-template-columns: 1fr;
}

.panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.panel:hover {
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
    border-color: #a5d6a7;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    border-bottom: 2px solid #a5d6a7;
}

.panel-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32;
}

.stats {
    font-size: 12px;
    color: #586069;
}

.status-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f6f8fa;
    color: #586069;
}

.status-badge.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #66bb6a;
    font-weight: 600;
}

.status-badge.error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef5350;
    font-weight: 600;
}

textarea {
    width: 100%;
    min-height: 400px;
    padding: 15px;
    border: none;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    background: #fafafa;
    color: #1a1a1a;
    font-weight: 500;
}

textarea:focus {
    background: white;
}

pre {
    width: 100%;
    min-height: 400px;
    padding: 15px;
    margin: 0;
    overflow: auto;
    background: #f5f5f5;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

code {
    color: #1b5e20;
    font-weight: 600;
}

.btn-copy {
    padding: 6px 14px;
    border: 2px solid #a5d6a7;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #388e3c;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #e8f5e9;
    border-color: #66bb6a;
    color: #2e7d32;
    transform: translateY(-1px);
}

/* Regex Tool */
.regex-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 14px;
    outline: none;
}

.regex-input:focus {
    border-color: #0366d6;
}

.regex-input-small {
    width: 100px;
    padding: 10px 15px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.common-patterns {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.common-patterns h4 {
    font-size: 14px;
    color: #586069;
    margin-bottom: 10px;
}

.pattern-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pattern-tag {
    padding: 8px 16px;
    background: white;
    border: 2px solid #a5d6a7;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #388e3c;
    font-weight: 600;
}

.pattern-tag:hover {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    border-color: #4caf50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.regex-results {
    padding: 15px;
    min-height: 400px;
    background: #fafbfc;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 13px;
}

.placeholder-text {
    color: #959da5;
    text-align: center;
    margin-top: 100px;
}

.match-item {
    padding: 8px;
    margin: 5px 0;
    background: white;
    border-left: 3px solid #0366d6;
    border-radius: 4px;
}

/* Hash Output */
.hash-output-container {
    padding: 15px;
}

.hash-output {
    width: 100%;
    padding: 12px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 14px;
    background: #fafbfc;
    color: #24292e;
}

/* Generators Grid */
.generators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.generator-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    align-self: flex-start;
    max-width: 600px;
    width: 100%;
}

.generator-card:hover {
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
    border-color: #a5d6a7;
    transform: translateY(-4px);
}

/* Individual tool cards - hidden by default */
.individual-tool {
    display: none;
}

.generators-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 20px;
}

.generators-grid .generator-card {
    flex: 0 1 auto;
}

.generator-card h3 {
    font-size: 1.375rem;
    color: #2d3748;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Prevent stretching of buttons and inputs inside cards */
.generator-card .btn,
.generator-card input,
.generator-card select,
.generator-card textarea {
    max-width: 100%;
}

.generator-card .btn {
    width: auto;
    display: inline-flex;
}

.generator-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.generator-controls label {
    font-size: 15px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 500;
}

.generator-controls input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    width: 80px;
    font-weight: 500;
}

.generator-output {
    width: 100%;
    min-height: 150px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 14px;
    margin: 15px 0;
    resize: vertical;
    line-height: 1.5;
}

.password-display {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.password-output {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #a5d6a7;
    border-radius: 10px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 15px;
    background: #e8f5e9;
    font-weight: 600;
    color: #1b5e20;
}

/* Time Tools Grid */
.time-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.time-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.time-card h3 {
    font-size: 1.375rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.converter-group {
    margin-bottom: 15px;
}

.converter-group label {
    display: block;
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    font-weight: 500;
}

.input-group input:focus {
    border-color: #0366d6;
}

.current-time {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    padding: 16px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 15px;
    color: #33691e;
    border: 2px solid #a5d6a7;
    font-weight: 500;
}

.current-time strong {
    color: #1b5e20;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-weight: 700;
    font-size: 16px;
}

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

.cron-field label {
    display: block;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 6px;
    font-weight: 600;
}

.cron-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    outline: none;
    font-weight: 500;
}

.cron-field input:focus {
    border-color: #0366d6;
}

.cron-result {
    background: #f6f8fa;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
}

.cron-result label {
    display: block;
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 600;
}

.cron-expression-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.cron-expression-display code {
    flex: 1;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 17px;
    font-weight: 700;
    color: #1b5e20;
}

.cron-desc {
    margin-top: 10px;
    font-size: 15px;
    color: #33691e;
    font-style: italic;
    font-weight: 600;
}

.cron-presets {
    margin-top: 20px;
}

.cron-presets h4 {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 600;
}

.preset-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-preset {
    padding: 8px 16px;
    border: 2px solid #a5d6a7;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #388e3c;
}

.btn-preset:hover {
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
    border-color: #4caf50;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid #e1e4e8;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}

.footer p {
    color: #718096;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .nav {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .nav {
        gap: 6px;
        justify-content: flex-start;
    }
    
    .workspace {
        grid-template-columns: 1fr;
    }
    
    .generators-grid {
        flex-direction: column;
        align-items: stretch;
    }
    
    .generators-grid .generator-card {
        max-width: 100%;
    }
    
    .time-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}
