:root {
    /* Global color palette - updated to match cyberpunk navigation theme */
    --primary: #ff00a0;
    --primary-dark: #d6008a;
    --primary-light: #ff33b5;
    --secondary: #0df2ff;
    --secondary-dark: #00c9e6;
    --secondary-light: #40f5ff;
    --accent: #9600ff;
    --accent-dark: #7a00d9;
    --accent-light: #b333ff;
    --success: #00ff88;
    --success-dark: #00d96f;
    --success-light: #33ffa3;
    --danger: #ff0080;
    --danger-dark: #d9006b;
    --danger-light: #ff3399;
    --warning: #ffaa00;
    --warning-dark: #e69500;
    --warning-light: #ffbb33;
    --info: #0df2ff;
    --info-dark: #00c9e6;
    --info-light: #40f5ff;
    --gray: #7f8c8d;
    --gray-dark: #6c7b7d;
    --gray-light: #bdc3c7;
    --dark: #0a0a12;
    --dark-darker: #050508;
    --light: #f8f9fa;
    --light-lighter: #ffffff;
    --text: #e0e0e0;
    --text-light: #bdc3c7;
    --text-lighter: #95a5a6;
    --bg-light: #f8f9fa;
    --bg-dark: #0a0a12;
    --card-bg: #151525;
    
    /* Enhanced global spacing and styling */
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
    --shadow-small: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-large: 0 12px 32px rgba(0, 0, 0, 0.9);
    --shadow-hover: 0 0 28px rgba(255, 0, 160, 0.4);
    --shadow-glow: 0 0 20px rgba(255, 0, 160, 0.3);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --radius-pill: 50px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 15px;
    --space-lg: 20px;
    --space-xl: 30px;
    --space-xxl: 40px;
    
    /* Enhanced typography */
    --font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 22px;
    --font-size-xxl: 28px;
    
    /* Z-indices */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
}

/* General styles that apply to all tools */
body { 
    font-family: var(--font-family);
    background-color: #0a0a12; /* Dark base background like navigation.css */
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated starfield background */
body::before {
    content: "";
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234ecdc4' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -1;
    animation: subtle-move 120s linear infinite;
}

@keyframes subtle-move {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Tool-specific body overrides */
body.anki {
    max-width: 900px; 
    margin: 15px auto; 
    padding: 10px;
    padding-bottom: 60px; /* Space for collapsed footer */
}

body.random-life {
    padding: var(--space-lg);
    max-width: none; /* Remove max-width constraint */
}

body.ai-wardrobe {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    max-width: none;
}

/* Common body style for Haircut and Tryon tools */
body.haircut,
body.tryon {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: none;
    padding: 15px;
    min-height: 80vh;
}

/* ============ SHARED COMPONENTS ============ */

/* Container - standard width container for all tools */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
    width: 100%;
    position: relative;
    z-index: 1;
    /* Grid/gradient background specific to the content container */
    background-color: #0a0a12; 
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(78, 205, 196, 0.15) 0%, transparent 80%),
        linear-gradient(rgba(10, 10, 18, 0.97) 3px, transparent 3px),
        linear-gradient(90deg, rgba(10, 10, 18, 0.97) 3px, transparent 3px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    border-radius: 4px;
    /* Glassmorphism container overlay */
    background-color: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 205, 196, 0.4);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

.container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.8), transparent);
}

/* Container sizes */
.container-sm {
    max-width: 600px;
}

.container-md {
    max-width: 900px;
}

.container-lg {
    max-width: 1200px;
}

.container-fluid {
    max-width: none;
}

/* Cards - standard content container */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 0, 160, 0.3);
    transition: var(--transition);
}

/* Card variants */
.card-sm {
    padding: var(--space-lg);
}

.card-lg {
    padding: calc(var(--space-xl) + 10px);
}

.card-flat {
    box-shadow: none;
    border: 1px solid var(--gray-light);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

/* Card with header and footer */
.card-header {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid rgba(255, 0, 160, 0.3);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05), rgba(69, 183, 170, 0.05));
    margin: calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl)) var(--space-lg);
    border-radius: var(--radius) var(--radius) 0 0;
}

.card-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid rgba(255, 0, 160, 0.3);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.02), rgba(69, 183, 170, 0.02));
    margin: var(--space-lg) calc(-1 * var(--space-xl)) calc(-1 * var(--space-xl));
    border-radius: 0 0 var(--radius) var(--radius);
}

/* Tool-specific containers that need to be retained */
.haircut-container, 
.tryon-container {
    margin-bottom: 20px; 
    padding: 20px; 
    border-radius: 16px; 
    background-color: #fff; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

/* Tool-specific body containers */
body.ai-wardrobe .container {
    background-color: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 600px;
    text-align: left;
}

h1 {
    color: var(--primary);
    margin-top: 0;
    margin-bottom: var(--space-lg);
    border-bottom: 2px solid var(--primary);
    padding-bottom: var(--space-sm);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 0, 160, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    color: var(--secondary);
    margin-top: 0;
    margin-bottom: var(--space-lg);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(13, 242, 255, 0.4);
    letter-spacing: 1px;
}

h3 {
    color: var(--text);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(224, 224, 224, 0.3);
}

/* Text alignment utilities */
.text-center {
    text-align: center;
}

/* Random Life heading overrides */
.random-life h1, 
.random-life h2 {
    color: var(--primary);
    text-align: center;
    border-bottom: none; /* Override Anki style */
}

/* Form elements */
form { 
    margin: var(--space-lg) 0;
}

label { 
    display: block; 
    margin-bottom: var(--space-sm); 
    font-weight: 600;
    color: var(--dark);
}

/* Base input styling */
.form-input,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%; 
    padding: 16px; 
    margin-bottom: var(--space-lg); 
    border: 2px solid rgba(255, 0, 160, 0.3);
    border-radius: var(--radius);
    font-size: 16px;
    box-sizing: border-box;
    transition: var(--transition);
    background: rgba(21, 21, 37, 0.8);
    font-family: inherit;
    color: var(--text);
    backdrop-filter: blur(5px);
}

.form-input:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 160, 0.2), var(--shadow-glow);
    transform: translateY(-2px);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Input sizes */
.input-sm {
    padding: 12px;
    font-size: 14px;
}

.input-lg {
    padding: 18px;
    font-size: 18px;
}

/* Input states */
.input-error {
    border-color: var(--danger);
    background: rgba(231, 76, 60, 0.02);
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.input-success {
    border-color: var(--success);
    background: rgba(46, 204, 113, 0.02);
}

.input-success:focus {
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

/* Input groups */
.input-group {
    display: flex;
    margin-bottom: var(--space-md);
}

.input-group input {
    margin-bottom: 0;
}

.input-group input:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group input:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 16px;
}

.input-group-addon:first-child {
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-addon:last-child {
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Form groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text);
    font-size: 1.1rem;
}

.form-group label .fas {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Checkbox and radio buttons */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    margin-right: var(--space-sm);
}

.form-check label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Custom radio/checkbox button groups */
.toggle-group {
    display: flex;
    overflow: hidden;
    margin-bottom: var(--space-md);
    border-radius: var(--radius);
    border: 1px solid #ddd;
}

.toggle-group label {
    flex: 1;
    padding: 10px;
    text-align: center;
    margin: 0;
    cursor: pointer;
    transition: var(--transition);
    border-right: 1px solid #ddd;
    background-color: #f8f9fa;
    font-weight: normal;
}

.toggle-group label:last-child {
    border-right: none;
}

.toggle-group input[type="radio"] {
    display: none;
}

.toggle-group input[type="radio"]:checked + label {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

/* Form help text */
.form-help-text {
    display: block;
    margin-top: -10px;
    margin-bottom: var(--space-md);
    font-size: 14px;
    color: var(--text-light);
}

/* Buttons */
.btn,
button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    width: 100%;
    max-width: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn::before,
button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before,
button:hover::before {
    left: 100%;
}

.btn:hover,
button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover), 0 0 25px rgba(255, 0, 160, 0.4);
}

.btn:active,
button:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.btn:disabled,
button:disabled {
    background: linear-gradient(135deg, var(--gray), var(--gray-dark));
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-small);
    opacity: 0.7;
}

.btn i,
button i {
    margin-right: var(--space-sm);
}

/* Button sizes */
.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Button variants */
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline::before {
    display: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-outline.btn-secondary {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
}

/* Button shapes */
.btn-rounded {
    border-radius: var(--radius-lg);
}

.btn-pill {
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow);
}

.btn-pill:hover {
    box-shadow: var(--shadow-hover);
}

/* Button widths */
.btn-auto {
    width: auto;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Link buttons */
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    min-width: 80px;
    transition: var(--transition);
    font-weight: 600;
}

.link-button i {
    margin-right: var(--space-xs);
}

.link-button:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.link-button:active {
    transform: translateY(0);
}

/* Tool-specific button styles that need to be retained for compatibility */
.haircut-back-button,
.tryon-back-button { 
    display: inline-block; 
    margin-top: 15px; 
    padding: 12px 25px; 
    background-color: #4c6fff; 
    color: white; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(76,111,255,0.3);
    transition: all 0.2s;
}

.haircut-back-button:hover,
.tryon-back-button:hover { 
    background-color: #3a5ae8; 
    transform: translateY(-2px);
}

.haircut-back-button:active,
.tryon-back-button:active {
    transform: translateY(0);
}

/* Replace AI Wardrobe submit button with standard button classes */
.submit-button {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background-color: #4c6fff;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76,111,255,0.3);
    margin-top: 10px;
}

.submit-button:hover:not(:disabled) {
    background-color: #3a5ae8;
    transform: translateY(-2px);
}

.submit-button:disabled {
    background-color: #c9d0e8;
    cursor: not-allowed;
    box-shadow: none;
}

.submit-button .fas {
    margin-right: 8px;
}

/* Tables */
table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    border: 1px solid rgba(78, 205, 196, 0.1);
}

th, td { 
    padding: 16px 20px; 
    text-align: left; 
}

th { 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: white;
    font-weight: 600;
    font-size: var(--font-size-md);
    border-bottom: 2px solid rgba(78, 205, 196, 0.2);
}

tr:nth-child(even) {
    background: rgba(78, 205, 196, 0.02);
}

tr:hover {
    background: rgba(78, 205, 196, 0.08);
    transform: scale(1.005);
    transition: var(--transition);
}

td {
    font-size: var(--font-size-sm);
    color: var(--text);
    border-bottom: 1px solid rgba(78, 205, 196, 0.1);
}

/* Status/alert messages */
.message,
.alert,
.message-area {
    padding: 16px 20px;
    margin-bottom: var(--space-lg);
    border-radius: var(--radius);
    font-weight: 500;
    position: relative;
    border-width: 1px;
    border-style: solid;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-small);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Message types */
.message.error,
.alert-error,
.message-area.error,
.error { 
    color: var(--danger);
    background: rgba(231, 76, 60, 0.05);
    border-color: var(--danger);
    border-left: 4px solid var(--danger);
}

.message.success,
.alert-success,
.message-area.success,
.success { 
    color: var(--success);
    background: rgba(46, 204, 113, 0.05);
    border-color: var(--success);
    border-left: 4px solid var(--success);
}

.message.info,
.alert-info,
.message-area.info,
.info { 
    color: var(--info);
    background: rgba(78, 205, 196, 0.05);
    border-color: var(--info);
    border-left: 4px solid var(--info);
}

.message.warning,
.alert-warning,
.message-area.warning,
.warning {
    color: var(--warning);
    background: rgba(243, 156, 18, 0.05);
    border-color: var(--warning);
    border-left: 4px solid var(--warning);
}

/* Message with icon */
.message-with-icon,
.alert-with-icon {
    display: flex;
    align-items: flex-start;
}

.message-icon,
.alert-icon {
    margin-right: var(--space-md);
    font-size: 1.5em;
    line-height: 1;
}

.message-content,
.alert-content {
    flex: 1;
}

/* Message with dismiss button */
.message-dismissible,
.alert-dismissible {
    padding-right: 40px;
}

.message-dismiss,
.alert-dismiss {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.message-dismiss:hover,
.alert-dismiss:hover {
    opacity: 1;
}

/* Additional helper class for text-based errors */
.error-text {
    color: var(--danger);
    font-size: 0.9em;
    margin-top: 5px;
    padding: 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--danger);
    border-radius: 5px;
}

/* Common utility for hiding elements */
.hidden {
    display: none !important;
}

/* Links & navigation */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Instructions */
.instructions {
    margin-top: var(--space-md);
}

.instructions h4 {
    margin-top: 0;
    color: var(--dark);
}

.instructions ol {
    margin-top: var(--space-md);
    padding-left: 25px;
}

.instructions li {
    margin-bottom: var(--space-xs);
}

/* Loading indicators */
.loading-container {
    display: none;
    text-align: center;
    margin: var(--space-xl) 0;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.spinner {
    border: 4px solid rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    border-top: 4px solid var(--primary);
    border-right: 4px solid var(--primary-dark);
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-lg) auto;
    transition: opacity 0.3s ease;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Unified Progress System */
.progress-container {
    height: 10px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: var(--radius-sm);
    margin: var(--space-lg) 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(78, 205, 196, 0.2);
}

/* Variant for tools that prefer rounded progress bars */
.progress-container.rounded {
    height: 12px;
    border-radius: var(--radius-pill);
    padding: 2px;
    background: rgba(78, 205, 196, 0.08);
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transition: width 0.8s cubic-bezier(0.1, 0.7, 0.6, 1);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.progress-container.rounded .progress-bar {
    border-radius: var(--radius-pill);
}

/* Enhanced Progress Bar Animations */
@keyframes movingStripes {
    0% { background-position: 0 0; }
    100% { background-position: 50px 0; }
}

@keyframes glowing {
    0% { box-shadow: 0 0 4px var(--primary-dark); }
    50% { box-shadow: 0 0 12px var(--primary), 0 0 20px rgba(78, 205, 196, 0.5); }
    100% { box-shadow: 0 0 4px var(--primary-dark); }
}

.progress-bar.animated {
    background: linear-gradient(
        45deg,
        var(--primary) 0%,
        var(--primary-light) 25%,
        var(--primary) 50%,
        var(--primary-dark) 75%,
        var(--primary) 100%
    );
    background-size: 50px 50px;
    animation: movingStripes 2s linear infinite, glowing 1.5s ease-in-out infinite;
}

/* Shimmer effect for progress bars */
.progress-bar.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.4) 50%, 
        rgba(255,255,255,0.1) 100%);
    animation: shimmer 1.5s infinite;
    transform: skewX(-20deg);
}

@keyframes shimmer {
    from { transform: translateX(-100%) skewX(-20deg); }
    to { transform: translateX(100%) skewX(-20deg); }
}

/* Indeterminate animation for when progress is unknown */
.progress-bar.indeterminate {
    animation: indeterminateAnimation 1.5s infinite linear;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    background-size: 200% 100%;
}

@keyframes indeterminateAnimation {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.progress-container.active {
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.3), inset 0 1px 3px rgba(0,0,0,0.1);
    height: 12px; /* Slightly taller during active processing */
    transition: all 0.3s ease;
}

.progress-message {
    text-align: center;
    font-style: italic;
    margin-top: var(--space-md);
    color: var(--text-light);
    min-height: 1.2em; /* Prevent layout shift */
    font-weight: 500;
}

.progress-message.emphasis {
    font-weight: 600;
    color: var(--text);
}

/* Unified Steps System */
.steps-container {
    display: flex;
    justify-content: space-around;
    margin: 25px 0 15px 0;
    max-width: 100%;
    overflow-x: auto; /* For smaller screens if steps are too wide */
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.2s;
    flex-basis: 100px;
    flex-grow: 1;
}

/* Vertical step variant (used by ai-wardrobe) */
.step.vertical {
    flex-direction: column;
    text-align: center;
    color: #aaa;
    opacity: 1;
}

.step.active {
    opacity: 1;
    transform: translateX(5px);
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: var(--gray);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-md);
    transition: background-color 0.3s;
    font-weight: bold;
}

.step.vertical .step-number {
    margin-right: 0;
    margin-bottom: 8px;
}

.step.active .step-number {
    background-color: var(--primary);
}

.step.completed .step-number {
    background-color: var(--success);
}

.step-text {
    font-weight: 500;
    transition: color 0.3s ease;
}

.step.vertical .step-text {
    font-size: 0.85em;
}

.step.completed .step-text {
    color: var(--success);
}

.step.active.pulse-animation .step-number,
.step.active-pulse .step-number {
    animation: pulse 1.5s infinite;
}

/* Alternative pulse animation for step numbers */
@keyframes pulseStep {
    0% { box-shadow: 0 0 0 0 rgba(76, 111, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 111, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 111, 255, 0); }
}

.step.active-pulse-glow .step-number {
    animation: pulseStep 1.5s infinite;
}

/* Common animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

@keyframes highlightPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.highlight-animation {
    animation: highlightPulse 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes revealEffect {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.reveal-animation {
    animation: revealEffect 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============= ANKI SPECIFIC STYLES ============= */

/* Progress Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: var(--space-xl);
    width: 80%;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(78, 205, 196, 0.1);
    animation: slideInScale 0.3s ease-out;
}

@keyframes slideInScale {
    from { transform: scale(0.7) translateY(-50px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-title {
    font-size: 24px;
    color: var(--text);
    margin-top: 0;
    margin-bottom: var(--space-xl);
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.modal-title i {
    color: var(--primary);
    font-size: 1.6rem;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-md);
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.2s;
}

.step.active {
    opacity: 1;
    transform: translateX(5px);
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: var(--gray);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-md);
    transition: background-color 0.3s;
}

.step.active .step-number {
    background-color: var(--primary);
}

.step.completed .step-number {
    background-color: var(--success);
}

.step-text {
    font-weight: 500;
}

.step.completed .step-text {
    color: var(--success);
}

.step.active.pulse-animation .step-number {
    animation: pulse 1.5s infinite;
}

.table-container {
    overflow-x: auto;
}

.hidden-column {
    display: none;
}

.form-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Sticky Footer */
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-top: 2px solid rgba(78, 205, 196, 0.2);
    transition: transform 0.3s ease;
    z-index: 100;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

.footer-collapsed {
    transform: translateY(calc(100% - 45px));
}

.footer-toggle {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 8px 20px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    color: white;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    border: none;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
    margin: 0 auto;
    width: 220px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    transition: var(--transition);
}

.footer-toggle:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    transform: translateX(-50%) translateY(-100%) translateY(-2px);
}

.footer-toggle i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.footer-toggle i.rotated {
    transform: rotate(180deg);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl);
}

/* Glow animation for the footer toggle */
@keyframes glow-text {
    from {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 
                     0 0 15px rgba(255, 255, 255, 0.5);
    }
    to {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 
                     0 0 25px var(--primary), 
                     0 0 35px rgba(78, 205, 196, 0.4);
    }
}

/* DataTables Custom Styling */
.dataTables_wrapper {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    font-family: var(--font-family);
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
    border: 1px solid rgba(78, 205, 196, 0.1);
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.dataTables_wrapper .dataTables_filter input {
    border: 2px solid rgba(255, 0, 160, 0.3);
    border-radius: var(--radius);
    padding: 8px 12px;
    margin-left: 10px;
    transition: var(--transition);
    background: var(--card-bg);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
    transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 8px 12px;
    margin: 0 3px;
    border: 1px solid rgba(255, 0, 160, 0.3);
    border-radius: var(--radius);
    background: var(--light);
    color: var(--text) !important;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-small);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    border-color: var(--primary);
    box-shadow: var(--shadow-small);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: var(--text-lighter) !important;
    border: 1px solid var(--gray-light);
    background: var(--light);
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* DataTables table styling */
table.dataTable {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: var(--space-lg) 0;
    clear: both;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    border: 1px solid rgba(78, 205, 196, 0.1);
}

table.dataTable thead th,
table.dataTable thead td {
    padding: 16px 20px;
    border-bottom: 2px solid rgba(255, 0, 160, 0.3);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-weight: 600;
    text-align: left;
    font-size: var(--font-size-md);
}

table.dataTable tbody tr {
    background: var(--card-bg);
    transition: var(--transition);
}

table.dataTable tbody tr:nth-child(even) {
    background: rgba(78, 205, 196, 0.02);
}

table.dataTable tbody tr:hover {
    background: rgba(78, 205, 196, 0.08);
    transform: scale(1.01);
    box-shadow: var(--shadow-small);
}

table.dataTable tbody th,
table.dataTable tbody td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 0, 160, 0.3);
    font-size: var(--font-size-sm);
    color: var(--text);
}

/* Responsive adjustments */
@media screen and (max-width: 767px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        text-align: left;
        float: none;
        display: block;
        margin-bottom: var(--space-sm);
    }
    
    .dataTables_wrapper .dataTables_filter {
        margin-top: var(--space-sm);
    }
    
    .dataTables_wrapper .dataTables_paginate {
        margin-top: var(--space-md);
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* ============= RANDOM LIFE SPECIFIC STYLES ============= */

/* Random Life Options Grid */
.options-container {
    display: none;
    margin-top: var(--space-xl);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 900px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (max-width: 600px) {
    .options-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.option-card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--space-xl);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    transform-origin: center;
    border: 1px solid rgba(255, 0, 160, 0.3);
}

.option-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.option-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.option-card:hover::before {
    opacity: 1;
}

.option-card.highlighted {
    border: 3px solid var(--secondary);
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
    z-index: 10;
    transform: scale(1.02);
}

.option-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.option-description {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.option-link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.option-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.option-link i {
    margin-left: var(--space-xs);
    transition: var(--transition);
}

.option-link:hover i {
    transform: translateX(3px);
}

/* Random Life Winner Styling */
.winner-container {
    display: none;
    text-align: center;
    margin: var(--space-xl) 0;
    position: relative;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05), rgba(255, 107, 107, 0.05));
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 2px solid rgba(78, 205, 196, 0.2);
}

.winner-title {
    font-size: 28px;
    color: var(--secondary);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.winner-name {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-xl);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.winner-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.winner-action {
    margin-top: var(--space-xl);
}

.winner-action a {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.winner-action a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.winner-action a:hover::before {
    left: 100%;
}

.winner-action a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.winner-action a i {
    margin-right: var(--space-sm);
}

/* Location Permission Styles */
.location-permission {
    margin: var(--space-sm) 0;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--bg-light);
    border: 1px solid #e3e6f0;
    border-radius: var(--radius);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.location-permission-header {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    margin-right: var(--space-sm);
}

.location-icon {
    font-size: 18px;
    color: var(--primary);
    margin-right: var(--space-sm);
}

.location-status {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-size: 14px;
}

.location-status.granted {
    color: var(--success);
}

.location-status.denied {
    color: var(--danger);
}

.location-status.pending {
    color: var(--warning);
}

.location-status.error {
    color: var(--danger);
}

.location-text {
    text-align: left;
    margin: 0 var(--space-sm) 0 0;
    font-size: 14px;
    color: var(--text-light);
    flex: 1;
    min-width: 200px;
}

.location-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    flex-wrap: nowrap;
}

.location-button {
    padding: 6px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px;
    white-space: nowrap;
}

.allow-button {
    background-color: var(--success);
    color: white;
    border: none;
}

.allow-button:hover {
    background-color: #27ae60;
}

.deny-button {
    background-color: white;
    color: var(--text-light);
    border: 1px solid #ddd;
}

.deny-button:hover {
    background-color: #f5f5f5;
}

/* Try Again Button */
.try-again-container {
    text-align: center;
    margin-top: var(--space-xl);
    display: none;
}

/* ============= COMMON FACESWAP TOOL STYLES (HAIRCUT & TRYON) ============= */

/* Tool container - used by haircut and tryon tools */
.ai-tool-container {
    margin-bottom: 20px; 
    padding: 20px; 
    border-radius: var(--radius-lg);
    background-color: var(--card-bg); 
    box-shadow: var(--shadow);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

/* Tool error container */
.ai-tool-error-container {
    background-color: rgba(231, 76, 60, 0.05);
}

.ai-tool-error-container a { 
    display: inline-block; 
    margin-top: 15px; 
    padding: 12px 25px; 
    background-color: var(--danger);
    color: white; 
    border-radius: var(--radius-pill);
    text-decoration: none; 
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    transition: var(--transition);
}

.ai-tool-error-container a:hover {
    background-color: var(--danger-dark);
    transform: translateY(-2px);
}

/* Tool result container */
.ai-tool-result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ai-tool-result-container img { 
    max-width: 100%;
    height: auto;
    max-height: none;
    display: block;
    border-radius: var(--radius);
    margin: 15px 0; 
    box-shadow: var(--shadow);
}

/* Back button for result page */
.ai-tool-back-button { 
    display: inline-block; 
    margin-top: 15px; 
    padding: 12px 25px; 
    background-color: var(--primary);
    color: white; 
    border-radius: var(--radius-pill);
    text-decoration: none; 
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(76, 111, 255, 0.3);
    transition: var(--transition);
}

.ai-tool-back-button:hover { 
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.ai-tool-back-button:active {
    transform: translateY(0);
}

/* Preview container */
.ai-tool-preview-container {
    overflow: visible;
    width: 100%;
    margin-top: 15px;
    text-align: center;
}

.ai-tool-preview-container img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px auto;
    max-height: 150px;
    border-radius: var(--radius);
}

.ai-tool-preview-container .source-text {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Tool loading container */
.ai-tool-loading-container {
    padding: 40px 20px; 
    text-align: center;
    justify-content: center;
}

/* Process steps */
.process-step {
    margin: 5px 0;
    color: var(--gray);
    font-size: 0.9em;
    opacity: 0.7;
    transition: var(--transition);
}

.process-step.active {
    color: var(--primary);
    opacity: 1;
    font-weight: 500;
}

.process-step.completed {
    color: var(--success);
}

/* Tool disclaimer */
.ai-tool-disclaimer {
    font-size: 0.8em;
    color: var(--gray);
    text-align: center;
    margin-top: 25px;
    padding: 0 10px;
    line-height: 1.4;
}

/* Upload options */
.ai-tool-upload-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
}

.ai-tool-upload-option {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    background-color: var(--light-lighter);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--primary);
    justify-content: center;
}

.ai-tool-upload-option:hover,
.ai-tool-upload-option:focus {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-small);
}

/* Haircut selector */
.haircut-selection-container {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light);
    text-align: left;
}

.haircut-selection-container h3 {
    margin-bottom: 10px;
    text-align: center;
    color: var(--text-light);
    font-weight: 600;
}

.haircut-selection-container > p,
.haircut-selection-container > div > label {
    text-align: left;
    margin-bottom: 5px;
    font-weight: normal;
    color: var(--text);
}

.gender-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.gender-toggle label {
    padding: 8px 15px;
    border: 1px solid var(--light);
    cursor: pointer;
    transition: var(--transition);
    background-color: var(--light-lighter);
    color: var(--text-light);
}

.gender-toggle input[type="radio"] {
    display: none;
}

.gender-toggle label:first-of-type {
    border-top-left-radius: var(--radius-pill);
    border-bottom-left-radius: var(--radius-pill);
}

.gender-toggle label:last-of-type {
    border-top-right-radius: var(--radius-pill);
    border-bottom-right-radius: var(--radius-pill);
    border-left: none;
}

.gender-toggle input[type="radio"]:checked + label {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.haircut-dropdown,
.ai-tool-dropdown {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--light);
    font-size: 1em;
    background-color: white;
    margin-top: 5px;
    color:#050508;
}

/* Haircut style option containers */
.haircut-options {
    display: none;
    margin-top: 10px;
}

.haircut-options.active {
    display: block;
}

/* ============= AI WARDROBE SPECIFIC STYLES ============= */



/* Result styling */
body.ai-wardrobe .outfit-details-text {
    text-align: left;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.7;
    width: 100%;
    color:#050508 !important;
}

body.ai-wardrobe .outfit-details-text ul {
    list-style-type: none;
    padding-left: 0;
}

body.ai-wardrobe .outfit-details-text li {
    margin-bottom: 8px;
}

body.ai-wardrobe .outfit-details-text strong {
    color: #333;
}

body.ai-wardrobe .outfit-details-text a {
    color: #4c6fff;
    text-decoration: none;
}

body.ai-wardrobe .outfit-details-text a:hover {
    text-decoration: underline;
}

/* AI Wardrobe result image styling */
body.ai-wardrobe #result-image-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

body.ai-wardrobe #result-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Placeholder styling */
::placeholder {
    color: rgba(224, 224, 224, 0.5);
    opacity: 1;
}

::-webkit-input-placeholder {
    color: rgba(224, 224, 224, 0.5);
}

::-moz-placeholder {
    color: rgba(224, 224, 224, 0.5);
    opacity: 1;
}

:-ms-input-placeholder {
    color: rgba(224, 224, 224, 0.5);
}

/* ============= TRANSCRIBE TOOL SPECIFIC STYLES ============= */

/* Recording button states */
.btn.btn-recording {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: var(--shadow), 0 0 15px rgba(255, 0, 128, 0.3);
    }
    50% { 
        box-shadow: var(--shadow-hover), 0 0 25px rgba(255, 0, 128, 0.6);
    }
}

/* Status text styling */
.status-text {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-top: var(--space-lg);
    min-height: 1.2em;
    transition: var(--transition);
    font-size: var(--font-size-sm);
}

/* Tagline styling */
.tagline {
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-lg);
    text-align: center;
    opacity: 0.8;
}

/* Centered layout for single-purpose tools */
.tool-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--space-lg);
}

.tool-centered .container {
    width: 100%;
    max-width: 600px;
}

/* Large textarea for content input */
.textarea-large {
    min-height: 200px;
    resize: vertical;
}

/* Success glow effect */
.success-glow {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3) !important;
    transition: box-shadow 0.5s ease;
}

/* Copy glow effect */
.copy-glow {
    box-shadow: 0 0 15px rgba(13, 242, 255, 0.5) !important;
    transition: box-shadow 0.3s ease;
}

/* ============= UTILITY CLASSES ============= */

/* Visibility utilities */
.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Link buttons */
.link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    min-width: 80px;
    transition: var(--transition);
    font-weight: 600;
}

.link-button i {
    margin-right: var(--space-xs);
}

.link-button:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.link-button:active {
    transform: translateY(0);
}

/* Delete buttons - matching size but different color */
.delete-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: var(--danger);
    color: white;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    min-width: 80px;
    transition: var(--transition);
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-left: var(--space-sm);
}

.delete-button i {
    margin-right: var(--space-xs);
}

.delete-button:hover {
    background-color: var(--danger-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.delete-button:active {
    transform: translateY(0);
}

/* Actions cell styling for better button alignment */
.actions-cell {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}