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

:root {
    --primary-color: #E64A8D;
    --primary-dark: #C73A7A;
    --danger-color: #DC3545;
    --danger-dark: #C82333;
    --success-color: #28A745;
    --secondary-color: #6C757D;
    --background: linear-gradient(135deg, #FFF5F9 0%, #FFFFFF 100%);
    --text-primary: #11181C;
    --text-secondary: #687076;
    --border-color: #E5E7EB;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 50px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.logo h1 {
    font-size: 3em;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tagline {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1em;
    font-weight: 500;
}

/* Sections */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Cards */
.card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
}

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

.card-header {
    margin-bottom: 30px;
    text-align: center;
}

.card-header h2 {
    color: var(--primary-color);
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 1.05em;
}

.card-body {
    margin-top: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 74, 141, 0.1);
}

/* Buttons */
.btn {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 74, 141, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 74, 141, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, #FFF3CD 0%, #FFF8E1 100%);
    border-left: 4px solid #FFC107;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
}

.warning-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.warning-content h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.warning-content p {
    color: #856404;
    margin-bottom: 10px;
}

.warning-content ul {
    margin-left: 20px;
    color: #856404;
}

.warning-content ul li {
    margin-bottom: 5px;
}

/* Delete Section */
.delete-section {
    background: #FFF5F5;
    border: 2px solid #FEE;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.delete-section h3 {
    color: var(--danger-color);
    margin-bottom: 15px;
}

.delete-section ol {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* Success Card */
.success-card {
    text-align: center;
}

.success-icon {
    font-size: 5em;
    margin-bottom: 20px;
}

.success-card h2 {
    color: var(--success-color);
    margin-bottom: 15px;
}

/* Summary Box */
.summary-box {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.summary-box h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.summary-box ul {
    list-style: none;
    padding: 0;
}

.summary-box li {
    padding: 5px 0;
    color: var(--text-secondary);
}

/* Messages */
.error-message {
    background: #F8D7DA;
    color: #721C24;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 15px 0;
    display: none;
    border-left: 4px solid var(--danger-color);
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.info-text {
    background: #E8F4FD;
    color: #004085;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #007BFF;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #11181C 0%, #2A2F35 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-radius: 24px 24px 0 0;
}

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Utilities */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .card {
        padding: 25px;
    }

    .logo h1 {
        font-size: 2em;
    }

    .warning-box {
        flex-direction: column;
    }
}
