/* Palette View Styles - Exact Design from Image */
.palette-view-container {
    max-width: 1336px;
    margin: 0 auto;
    padding: 2rem;
}

.palette-view-content {
    margin: 0 auto;
}

/* Back Navigation */
.back-navigation {
    margin-bottom: 2rem;
}

.back-link {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-link:hover {
    color: #374151;
}

/* Palette Header */
.palette-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.palette-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

/* Override main.css palette-actions styles for palette view page */
.palette-view-container .palette-header .palette-actions {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: flex !important;
    gap: 0.75rem !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transition: none !important;
    z-index: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Palette Actions - Clean CSS without inline styles */
.palette-view-actions {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    display: flex;
    gap: 0.75rem;
    opacity: 1;
    pointer-events: auto;
    transition: none;
    z-index: auto;
    margin: 0;
    padding: 0;
}

.palette-view-btn {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    visibility: visible;
    opacity: 1;
    min-width: 120px;
    min-height: 38px;
    pointer-events: auto;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

/* Download Button Styles */
.download-btn {
    background: #8B5CF6;
    color: white;
}

.download-btn:hover {
    background: #7C3AED;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Share Button Styles */
.share-btn {
    background: white;
    color: #374151;
    border: 1.5px solid #e5e7eb;
}

.share-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    color: #374151;
    text-decoration: none;
}

/* Button Icon Styles */
.btn-icon {
    font-size: 0.9rem;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Color Swatches - Exact Design from Image */
.color-swatches {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.color-swatch {
    flex: 1;
    min-width: 200px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    background: white;
}

.color-swatch:hover {
    transform: translateY(-2px);
}

.color-block {
    height: 120px;
    width: 100%;
    position: relative;
}

.color-info {
    padding: 1rem;
    background: white;
}

.color-labels {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.color-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.color-label:hover {
    color: #374151;
    background-color: #f3f4f6;
}

.color-label.active {
    color: #8B5CF6;
    background-color: #f3f4f6;
    font-weight: 700;
}

.color-codes {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.color-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    display: none;
}

.color-code.active {
    display: block;
}

/* Show only HEX code prominently, hide RGB and HSL initially */
.rgb-code, .hsl-code {
    display: none;
}

.copy-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: white;
    transform: scale(1.05);
}

/* Tags Section */
.tags-and-favorites{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tags-section {
    margin-bottom: 3rem;
}

.tags-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag-chip {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.tag-chip:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Favorites Section */
.favorites-section {
    display: flex;
    justify-content: flex-end;
}

.favorites-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.favorites-btn:hover {
    border-color: #fca5a5;
    color: #dc2626;
    text-decoration: none;
}

.heart-icon {
    font-size: 1rem;
}

/* Toast Notification System - Merged and Cleaned */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-notification {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 12px 16px;
    margin-bottom: 8px;
    min-width: 280px;
    max-width: 320px;
    border-left: 3px solid #10b981;
    transform: translateX(100%);
    opacity: 0;
    animation: slideInRight 0.3s ease forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.toast-notification.success {
    border-left-color: #10b981;
}

.toast-notification.error {
    border-left-color: #ef4444;
}

.toast-notification.info {
    border-left-color: #3b82f6;
}

.toast-notification.warning {
    border-left-color: #f59e0b;
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.toast-title {
    font-weight: 600;
    font-size: 0.8rem;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: #6b7280;
    background: #f3f4f6;
}

.toast-message {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.3;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #e5e7eb;
    width: 100%;
}

.toast-progress-bar {
    height: 100%;
    background: #10b981;
    width: 100%;
}

.toast-notification.success .toast-progress-bar {
    background: #10b981;
}

.toast-notification.error .toast-progress-bar {
    background: #ef4444;
}

.toast-notification.info .toast-progress-bar {
    background: #3b82f6;
}

.toast-notification.warning .toast-progress-bar {
    background: #f59e0b;
}

.toast-notification.hide {
    animation: slideOutRight 0.3s ease forwards;
}

body.toast-active {
    overflow: hidden;
} 

/* Create Palette Styles */
.create-palette-main {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
    background-color: #f9fafb;
}

.create-palette-container {
    max-width: 1336px;
    margin: 0 auto;
    padding: 0 1rem;
}

.create-palette-header {
    text-align: center;
    margin-bottom: 2rem;
}

.create-palette-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.create-palette-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0;
}

/* Palette Preview Section */
.palette-preview-section {
    margin-bottom: 2rem;
}

.palette-preview-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.palette-preview {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.preview-color-block {
    flex: 1;
    height: 120px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px dashed #d1d5db;
}

.preview-color-block.filled {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-hex {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.preview-color-block.filled .preview-hex {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.preview-label {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

.preview-color-block.filled .preview-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Palette Input Section */
.palette-input-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.palette-name-input {
    margin-bottom: 2rem;
}

.palette-name-input label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.palette-name-input input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.palette-name-input input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.char-count {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Color Inputs */
.color-inputs {
    margin-bottom: 2rem;
}

.color-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.color-input-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.color-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
}

.color-input:focus {
    outline: none;
    border-color: #8b5cf6;
}

.color-input.valid {
    border-color: #10b981;
}

.color-input.invalid {
    border-color: #ef4444;
}

.clear-color-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.clear-color-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Save Button */
.save-palette-section {
    text-align: center;
}

.save-palette-btn {
    background: #8b5cf6;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.save-palette-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.save-palette-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.save-palette-btn i {
    font-size: 1rem;
}

/* Tips Section */
.palette-tips-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tips-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tips-header i {
    color: #8b5cf6;
    font-size: 1.2rem;
}

.tips-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
    line-height: 1.6;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list li strong {
    color: #374151;
}

/* Updated Saved Palettes Section - Matching Image Design */
.saved-palettes-section {
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
    padding: 1.5rem 2rem;
}

.saved-palettes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.saved-palettes-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.clear-all-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.clear-all-btn:hover {
    background: #dc2626;
}

.saved-palettes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Updated palette card design to match image */
.saved-palette-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.saved-palette-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Top Color Display Section */
.saved-palette-colors {
    display: flex;
    height: 150px;
    position: relative;
}

.saved-palette-color-block {
    flex: 1;
    position: relative;
}

.saved-palette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.saved-palette-card:hover .saved-palette-overlay {
    opacity: 1;
}

/* Action buttons overlaid on colors */
.saved-palette-actions {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.saved-palette-card:hover .saved-palette-actions {
    opacity: 1;
    pointer-events: auto;
}

.saved-palette-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.saved-palette-btn.copy-btn {
    background: #fff;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.saved-palette-btn.copy-btn:hover {
    background: #f3f4f6;
}

.saved-palette-btn.view-btn {
    background: #8b5cf6;
    color: #fff;
}

.saved-palette-btn.view-btn:hover {
    background: #7c3aed;
}

.saved-palette-btn.edit-btn {
    background: #3b82f6;
    color: #fff;
}

.saved-palette-btn.edit-btn:hover {
    background: #2563eb;
}

.saved-palette-btn.delete-btn {
    background: #ef4444;
    color: #fff;
}

.saved-palette-btn.delete-btn:hover {
    background: #dc2626;
}

/* Bottom Information Section */
.saved-palette-info {
    padding: 1rem;
    background: #fff;
}

.saved-palette-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.saved-palette-name {
    font-weight: 600;
    color: #374151;
    font-size: 1rem;
    margin: 0;
    word-break: break-word;
    flex: 1;
}

.saved-palette-copy-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.saved-palette-copy-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.saved-palette-copy-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.saved-palette-fav-btn {
    background: none;
    border: none;
    color: #d1d5db;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.saved-palette-fav-btn:hover {
    color: #ef4444;
}

.saved-palette-fav-btn.active {
    color: #ef4444;
}

.saved-palette-date {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.saved-palette-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.saved-palette-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.no-palettes-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.no-palettes-message i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

.no-palettes-message p {
    font-size: 1rem;
    margin: 0;
}

/* Delete Confirmation Popup */
.delete-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.delete-popup {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.delete-popup-overlay.show .delete-popup {
    transform: scale(1);
}

.delete-popup-icon {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.delete-popup-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.delete-popup-message {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.delete-popup-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.delete-popup-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.delete-popup-btn.cancel {
    background: #f3f4f6;
    color: #374151;
}

.delete-popup-btn.cancel:hover {
    background: #e5e7eb;
}

.delete-popup-btn.confirm {
    background: #ef4444;
    color: #fff;
}

.delete-popup-btn.confirm:hover {
    background: #dc2626;
}

/* Copy Alert Styles */
.copy-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.copy-alert {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.copy-alert-overlay.show .copy-alert {
    transform: scale(1);
}

.copy-alert-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.copy-alert-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.copy-alert-message {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.copy-alert-btn {
    background: #10b981;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.copy-alert-btn:hover {
    background: #059669;
}

/* Clickable Color Styles */
.clickable-color {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable-color:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.clickable-color:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

@keyframes progressShrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Media Queries - Organized by Breakpoints */
@media (max-width: 1299px) {
    .palette-view-container {
        max-width: 1200px;
    }
    
    .create-palette-container {
        max-width: 1200px;
    }
}

@media (max-width: 992px) {
    .palette-view-container {
        max-width: 900px;
        padding: 1.5rem;
    }
    
    .create-palette-container {
        max-width: 900px;
    }
    
    .palette-title {
        font-size: 2.25rem;
    }
    
    .create-palette-header h1 {
        font-size: 2.25rem;
    }
    
    .color-swatches {
        gap: 1rem;
    }
    
    .color-swatch {
        min-width: 180px;
    }
    
    .saved-palettes-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .palette-view-container {
        padding: 1rem;
    }
    
    .palette-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .palette-title {
        font-size: 2rem;
    }
    
    .palette-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .palette-view-actions {
        width: 100%;
        gap: 0.5rem;
    }
    
    .palette-view-btn {
        flex: 1;
        min-width: 100px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 36px;
    }
    
    .btn-icon {
        font-size: 0.8rem;
    }
    
    .color-swatches {
       display: grid;
       grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .color-swatch {
        min-width: auto;
    }
    
    .color-labels {
        gap: 0.5rem;
    }
    
    .color-codes {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .color-code {
        font-size: 0.8rem;
    }
    
    .tags-and-favorites{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .tags-section{
        margin-bottom: 2rem;
    }
    
    .favorites-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast-notification {
        min-width: auto;
        max-width: none;
        margin-bottom: 6px;
    }
    
    .create-palette-header h1 {
        font-size: 2rem;
    }
    
    .palette-preview {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .preview-color-block {
        height: 80px;
    }
    
    .color-input-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .palette-input-section,
    .palette-tips-section {
        padding: 1.5rem;
    }
    
    .saved-palettes-header {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    
    .saved-palettes-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .saved-palette-card {
        margin-bottom: 1rem;
    }
    
    .saved-palette-colors {
        height: 100px;
    }
    
    .saved-palette-header-row {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .saved-palette-copy-section {
        justify-content: flex-start;
    }
    
    .delete-popup {
        padding: 1.5rem;
    }
    
    .copy-alert {
        padding: 1.5rem;
    }
    
    .copy-alert-icon {
        font-size: 2.5rem;
    }
    
    .copy-alert-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .palette-view-container {
        padding: 0.8rem;
    }
    
    .palette-title {
        font-size: 1.75rem;
    }
    
    .palette-view-actions {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }
    
    .palette-view-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
    }
    
    .btn-icon {
        font-size: 0.85rem;
    }
    
    .color-block {
        height: 100px;
    }
    
    .color-info {
        padding: 0.75rem;
    }
    
    .favorites-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .palette-view-container {
        padding: 0.6rem;
    }
    
    .palette-title {
        font-size: 1.5rem;
    }
    
    .palette-view-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    .btn-icon {
        font-size: 0.8rem;
    }
    
    .color-block {
        height: 80px;
    }
    
    .color-info {
        padding: 0.6rem;
    }
    
    .favorites-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .create-palette-container {
        padding: 0 0.5rem;
    }
    
    .palette-preview {
        padding: 1rem;
    }
    
    .palette-input-section,
    .palette-tips-section {
        padding: 1rem;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .toast-notification {
        min-width: auto;
        max-width: none;
    }
    
    .saved-palettes-container{
        grid-template-columns: 1fr !important;
    }
    
    .saved-palettes-section {
        padding: 12px;
    }
    
    .saved-palettes-header h3 {
        font-size: 1.1rem;
    }
    
    .saved-palette-info {
        padding: 0.75rem;
    }
    
    .saved-palette-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .saved-palette-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .delete-popup-actions {
        flex-direction: column;
    }
    
    .copy-alert {
        padding: 1rem;
    }
    
    .copy-alert-icon {
        font-size: 2rem;
    }
    
    .copy-alert-title {
        font-size: 1.1rem;
    }
    
    .copy-alert-message {
        font-size: 0.9rem;
    }
    
    .copy-alert-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 350px) {
    .palette-view-container {
        padding: 0.5rem;
    }
    
    .palette-title {
        font-size: 1.25rem;
    }
    
    .palette-view-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
        min-height: 32px;
    }
    
    .btn-icon {
        font-size: 0.75rem;
    }
    
    .color-block {
        height: 60px;
    }
    
    .color-info {
        padding: 0.5rem;
    }
    
    .favorites-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .create-palette-container {
        padding: 0 0.3rem;
    }
    
    .palette-preview {
        padding: 0.8rem;
    }
    
    .palette-input-section,
    .palette-tips-section {
        padding: 0.8rem;
    }
    
    .saved-palettes-section {
        padding: 8px;
    }
    
    .saved-palettes-header h3 {
        font-size: 1rem;
    }
    
    .saved-palette-info {
        padding: 0.5rem;
    }
    
    .saved-palette-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .copy-alert {
        padding: 0.8rem;
    }
    
    .copy-alert-icon {
        font-size: 1.75rem;
    }
    
    .copy-alert-title {
        font-size: 1rem;
    }
    
    .copy-alert-message {
        font-size: 0.8rem;
    }
    
    .copy-alert-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.75rem;
    }
} 