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


body {

    background-color: #1a1a1a;
    color: #fff;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.drop-zone {
    transition: all 0.3s ease;
}
.drop-zone.drag-over {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    transform: scale(1.02);
}
.icon-preview {
    transition: all 0.3s ease;
}
.icon-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 500px;
    margin: 20px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: scale(0.8);

}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 16px;
    background: white;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
    transform: scale(1.1);
}

.modal-body {
    padding: 20px 24px 24px 24px;
    background: white;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #2d2d2d;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #23272f;
    color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
    color: #a1a1aa;
    opacity: 1;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

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

.form-help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
}

/* Rating Stars */
.rating-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #fefce8;
    border-radius: 12px;
    border: 1px solid #fde047;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-input {
    display: none;
}

.rating-star {
    font-size: 24px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.rating-star:hover {
    color: #fbbf24;
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(251, 191, 36, 0.3));
}

.rating-star:hover ~ .rating-star {
    color: #fbbf24;
    transform: scale(1.1);
}

.rating-input:checked ~ .rating-star {
    color: #fbbf24;
    animation: starPop 0.3s ease;
}

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

.rating-text {
    font-size: 13px;
    color: #92400e;
    font-weight: 500;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Select dropdown styling */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .modal-container {
        margin: 16px;
        max-width: calc(100vw - 32px);
    }
    
    .modal-header {
        padding: 12px 16px 0 16px;
    }
    
    .modal-body {
        padding: 12px 16px 16px 16px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 10px 20px;
    }
    
    .rating-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 10px;
    }
    
    .rating-star {
        font-size: 20px;
    }
    
    .form-textarea {
        min-height: 80px;
    }
}

/* Hidden class for modal */
.hidden {
    display: none !important;
}

.page-wrapper {
    transform: scale(0.8);
    transform-origin: top left;
}

/* Modern Playful Scrollbar Styles - Cross Browser */
/* Webkit Browsers (Chrome, Edge, Safari) */
body, .overflow-y-auto, .max-h-\[calc\(100vh-100px\)\], .max-h-\[200px\] {
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #f3e8ff;
}

body::-webkit-scrollbar, .overflow-y-auto::-webkit-scrollbar, .max-h-\[calc\(100vh-100px\)\]::-webkit-scrollbar, .max-h-\[200px\]::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  background: #f3e8ff;
  border-radius: 8px;
}

body::-webkit-scrollbar-thumb, .overflow-y-auto::-webkit-scrollbar-thumb, .max-h-\[calc\(100vh-100px\)\]::-webkit-scrollbar-thumb, .max-h-\[200px\]::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b5cf6 40%, #3b82f6 100%);
  border-radius: 8px;
  border: 3px solid #f3e8ff;
  min-height: 40px;
  transition: background 0.3s;
}

body::-webkit-scrollbar-thumb:hover, .overflow-y-auto::-webkit-scrollbar-thumb:hover, .max-h-\[calc\(100vh-100px\)\]::-webkit-scrollbar-thumb:hover, .max-h-\[200px\]::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #a855f7 0%, #2563eb 100%);
}

body::-webkit-scrollbar-corner, .overflow-y-auto::-webkit-scrollbar-corner, .max-h-\[calc\(100vh-100px\)\]::-webkit-scrollbar-corner, .max-h-\[200px\]::-webkit-scrollbar-corner {
  background: #f3e8ff;
}

/* Firefox */
body, .overflow-y-auto, .max-h-\[calc\(100vh-100px\)\], .max-h-\[200px\] {
  scrollbar-width: thin;
  scrollbar-color: #8b5cf6 #f3e8ff;
}