/* Custom CSS for Profile Pages - No External Dependencies */
/* Replaces Tailwind CDN classes */

/* Layout & Flex */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.flex-shrink-0 { flex-shrink: 0; }
.text-center { text-align: center; }
.block { display: block; }

/* Transform & Transitions */
.transform { transform: translateZ(0); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.transition-all { transition: all 0.2s; }
.duration-200 { transition-duration: 200ms; }

/* Shadows */
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Backgrounds */
.bg-gradient-to-br {
    background: linear-gradient(135deg, #f3e7f3 0%, #fce7f3 100%);
}
.bg-white { background-color: #ffffff; }
.bg-purple-100 { background-color: #f3e8ff; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-600 { background-color: #4b5563; }
.bg-red-50 { background-color: #fef2f2; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-gradient-to-r {
    background: linear-gradient(90deg, #9333ea 0%, #ec4899 100%);
}

/* Text Colors */
.text-purple-600 { color: #9333ea; }
.text-gray-800 { color: #1f2937; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-white { color: #ffffff; }
.text-red-600 { color: #dc2626; }
.text-red-800 { color: #991b1b; }
.text-red-500 { color: #ef4444; }
.text-green-800 { color: #166534; }
.text-green-700 { color: #15803d; }
.text-green-600 { color: #16a34a; }

/* Spacing */
.p-8 { padding: 2rem; }
.p-6 { padding: 1.5rem; }
.p-3 { padding: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-4 { margin-top: 1rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-1 { margin-left: 0.25rem; }

/* Sizing */
.w-full { width: 100%; }
.w-16 { width: 4rem; }
.w-8 { width: 2rem; }
.w-6 { width: 1.5rem; }
.h-16 { height: 4rem; }
.h-8 { height: 2rem; }
.h-6 { height: 1.5rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-md { max-width: 28rem; }

/* Border & Radius */
.rounded-2xl { border-radius: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-200 { border-color: #fecaca; }
.border-green-200 { border-color: #bbf7d0; }

/* Shadow */
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Typography */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Form Elements */
.space-y-6 > * + * { margin-top: 1.5rem; }
.block { display: block; }

/* Input Styles */
input[type="date"].form-input,
input[type="time"].form-input,
input[type="text"].form-input,
select.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

input[type="date"].form-input:focus,
input[type="time"].form-input:focus,
input[type="text"].form-input:focus,
select.form-input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Button */
.btn-primary {
    width: 100%;
    background: linear-gradient(90deg, #9333ea 0%, #ec4899 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Icon */
.cursor-help { cursor: help; }

/* Alert Boxes */
.alert-box {
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
}

/* Profile Icon Styles */
.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: #f3e8ff;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.icon-container svg {
    width: 2rem;
    height: 2rem;
    color: #9333ea;
}

/* 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3e7f3 0%, #fce7f3 100%);
    padding: 1rem;
}

.error-content {
    text-align: center;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: #9333ea;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.error-message {
    color: #4b5563;
    margin-bottom: 2rem;
}

.btn-home {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, #9333ea 0%, #ec4899 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-home:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
}

/* Password Input with Eye Toggle */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    flex: 1;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.password-toggle:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .max-w-2xl, .max-w-md {
        max-width: 100%;
    }

    .error-code {
        font-size: 4rem;
    }
}
