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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    min-height: 100vh;
}

.form-group {
    margin-bottom: var(--spacing-xl);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--color-border-medium);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: border-color var(--transition-slow);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), var(--opacity-10));
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

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

.form-actions {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: var(--spacing-md) var(--spacing-2xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all var(--transition-slow);
    min-width: 140px;
}

.btn:disabled {
    opacity: var(--opacity-60);
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--color-gray-100);
    border-top: 3px solid var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

.tab-footer {
    text-align: center;
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border-light);
    color: var(--color-text-tertiary);
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.7;
    pointer-events: none;
}

.tab-footer p {
    margin: 0;
    padding: 0;
    margin-bottom: 2px;
}

.tab-footer p:last-child {
    margin-bottom: 0;
}

.tab-footer a {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-lg);
        min-height: 100vh;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: var(--spacing-md);
        min-height: 100vh;
    }
}

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

.btn-info:hover {
    background-color: var(--color-info-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background-color: var(--color-warning);
    color: var(--color-text-primary);
    font-weight: 600;
}

.btn-warning:hover {
    background-color: var(--color-warning-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.has-tooltip {
    cursor: help;
}

button.has-tooltip,
.btn.has-tooltip,
.storage-btn.has-tooltip {
    cursor: pointer;
}

.floating-storage-button {
    position: fixed;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 1000;
    animation: floatIn var(--transition-slow) ease-out;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.storage-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 10px var(--spacing-lg);
    background: var(--gradient-success-solid);
    color: var(--color-text-white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;

    transition: background-color var(--transition-base),
                box-shadow var(--transition-base),
                filter var(--transition-base);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.storage-btn:hover {

    filter: brightness(1.1);
    box-shadow: var(--shadow-lg);
}

.storage-btn.single-mode {
    background: var(--gradient-info-solid);
    box-shadow: var(--shadow-md);
}

.storage-btn.single-mode:hover {

    filter: brightness(1.1);
    box-shadow: var(--shadow-lg);
}

.storage-icon {
    font-size: 16px;
}

.storage-text {
    font-size: 14px;
}

@media (max-width: 1550px) {
    .floating-storage-button {
        top: auto;
        right: 10px;
        bottom: 80px;
    }

    .storage-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .storage-text {
        display: none;
    }

    .tooltip-content {
        max-width: 220px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .tooltip-container {
        animation: tooltipFadeInTop 0.2s ease-out forwards !important;
    }

    .tooltip-arrow {
        bottom: -6px !important;
        top: auto !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        border-top: 6px solid var(--color-gray-800) !important;
        border-left: 6px solid transparent !important;
        border-right: 6px solid transparent !important;
        border-bottom: none !important;
    }
}

@media (max-width: 1130px) {
    .floating-storage-button {
        display: none;
    }
}