/* Color Picker - Professional Morphism Design - No Border Radius */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    min-height: 100vh;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow-x: hidden;
}

/* Morphism Effects - No Border Radius */
.morphism {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.morphism-light {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    margin-bottom: 30px;
}

.header h1 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    display: inline-block;
}

.header-nav {
    float: right;
}

.admin-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    margin-bottom: 30px;
}

.admin-header h1 {
    color: #ffffff;
    font-size: 24px;
    display: inline-block;
}

.admin-nav {
    float: right;
    display: flex;
    gap: 15px;
    align-items: center;
}

.admin-nav span {
    color: #ffffff;
    margin-right: 15px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #1a1a1a;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: #dc143c;
    color: #ffffff;
}

.btn-primary:hover {
    background: #b01030;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.85);
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-danger {
    background: rgba(220, 53, 69, 0.8);
    color: #ffffff;
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 1);
}

/* Sections */
section {
    margin-bottom: 30px;
}

section h2 {
    color: #000000;
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
}

section h3 {
    color: #000000;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Login Box */
.login-box {
    max-width: 450px;
    margin: 100px auto;
}

.login-box h1 {
    color: #000000;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

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

.form-group label {
    display: block;
    color: #000000;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #000000;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc143c;
    background: rgba(255, 255, 255, 0.95);
}

.form-group textarea {
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-container {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 20px 0;
}

/* Error and Success Messages */
.error-message {
    background: rgba(220, 53, 69, 0.2);
    color: #ffffff;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

.success-message {
    background: rgba(40, 167, 69, 0.2);
    color: #ffffff;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.back-link {
    text-align: center;
    margin-top: 20px;
}

.back-link a {
    color: #000000;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Color Picker Interface */
.picker-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.color-input-group label {
    display: block;
    color: #000000;
    margin-bottom: 10px;
    font-weight: 500;
}

.input-wrapper {
    display: flex;
    gap: 10px;
}

.input-wrapper input[type="color"] {
    width: 80px;
    height: 50px;
    border: none;
    cursor: pointer;
    background: transparent;
}

.input-wrapper input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #000000;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.color-display {
    display: flex;
    gap: 20px;
}

.color-preview-large {
    width: 150px;
    height: 150px;
    background: #0077be;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
}

.color-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    background: rgba(0, 0, 0, 0.05);
    padding: 12px;
    display: flex;
    justify-content: space-between;
}

.info-item .label {
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.info-item span:last-child {
    color: #000000;
    font-family: 'Courier New', monospace;
}

.color-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Harmony Tabs */
.harmony-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.tab-btn.active {
    background: #dc143c;
    color: #ffffff;
}

.harmony-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.harmony-color {
    height: 120px;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.1);
}

.harmony-color:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.2);
}

.harmony-color span {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 8px;
}

/* Themes Grid */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 20px;
}

.theme-card {
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px 0 rgba(0, 0, 0, 0.15);
}

.theme-card h3 {
    color: #000000;
    font-size: 18px;
    margin-bottom: 15px;
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.theme-color {
    height: 50px;
    cursor: pointer;
}

/* Palette Grid */
.palette-controls {
    margin-bottom: 20px;
}

.palette-controls label {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #000000;
}

.palette-controls input[type="range"] {
    flex: 1;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.palette-color {
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.palette-color:hover {
    transform: scale(1.05);
}

.palette-color span {
    color: #ffffff;
    font-size: 11px;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 6px;
}

/* Saved Colors */
.saved-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.saved-color {
    height: 80px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.saved-color:hover {
    transform: scale(1.05);
}

.saved-color span {
    position: absolute;
    bottom: 5px;
    left: 5px;
    color: #ffffff;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 5px;
}

.saved-color .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.8);
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 10px;
}

/* Admin Tables */
.data-table {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.5);
}

thead {
    background: rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

th {
    font-weight: 600;
}

tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

.color-preview {
    display: flex;
    gap: 5px;
}

.color-swatch {
    width: 30px;
    height: 30px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 25px 0;
    margin-top: 50px;
    text-align: center;
    color: #ffffff;
}

.footer p {
    color: #ffffff;
}

.footer-support {
    font-size: 13px;
    margin-top: 12px;
    opacity: 1;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.footer-support a {
    color: #dc143c;
    text-decoration: underline;
}

.footer-support a:hover {
    color: #ff4d6d;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc143c;
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* CSS Tips/Styles Section */
.css-styles-section {
    margin-top: 30px;
}

.css-styles-section p {
    color: #000000;
    margin-bottom: 20px;
}

.page-intro {
    margin-bottom: 25px;
    padding: 30px;
    text-align: center;
}

.page-intro h2 {
    color: #000000;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-intro p {
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
    gap: 25px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.style-card {
    padding: 25px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.style-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: 10px;
}

.style-header h3 {
    color: #000000;
    font-size: 20px;
    margin: 0;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    flex: 1;
}

.style-type-badge {
    background: #dc143c;
    color: #ffffff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.style-preview {
    margin: 20px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.preview-box {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #000000;
    font-weight: 500;
    font-size: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.style-code {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.style-code label {
    color: #000000;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.style-code pre {
    background: rgba(0, 0, 0, 0.04);
    padding: 15px;
    overflow-x: auto;
    font-size: 13px;
    color: #333333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
    max-width: 100%;
}

/* Admin Style Preview */
.admin-style-preview {
    min-width: 150px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #000000;
    font-size: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 10px;
}

.admin-style-preview > div {
    width: 100%;
}

.admin-style-preview button,
.admin-style-preview input {
    font-family: inherit;
}

.style-preview-box {
    min-height: 120px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #000000;
    font-weight: 500;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.preview-box-wrapper {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    padding: 15px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.preview-box-wrapper > div {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.preview-box-wrapper button,
.preview-box-wrapper input {
    font-family: inherit;
}

.preview-box-wrapper input:focus {
    outline: none;
    border-color: #dc143c !important;
}

.copy-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.form-group small {
    display: block;
    color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    margin-top: 5px;
}

/* Search and Pagination */
.search-section {
    margin-bottom: 30px;
    padding: 25px 30px;
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 280px;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    color: #000000;
    font-size: 15px;
}

.search-input:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.result-count {
    color: #555555;
    font-size: 14px;
    margin: 15px 0 0 0;
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.page-info {
    color: #000000;
    font-weight: 600;
    padding: 0 20px;
    font-size: 15px;
}

.no-results {
    padding: 60px 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
}

.no-results p {
    color: #555555;
    font-size: 18px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    margin: 0;
}

.theme-search-form {
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
}

.theme-search-form .search-input {
    background: rgba(255, 255, 255, 0.9);
}

.themes-section .result-count {
    margin-bottom: 20px;
}

.themes-section .pagination {
    margin-top: 25px;
}

.themes-section .no-results {
    background: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}

/* Color Wheel Page */
.wheel-section .section-desc,
.harmony-display .section-desc,
.color-codes-section .section-desc {
    color: #555555;
    margin-bottom: 25px;
    font-size: 15px;
}

.wheel-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
}

.wheel-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
}

#colorWheel {
    border-radius: 50%;
    cursor: crosshair;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: block;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #0077be;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    z-index: 10;
}

#wheelMarkers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wheel-marker {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wheel-marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

.wheel-marker.base-marker {
    width: 30px;
    height: 30px;
    border-width: 4px;
    z-index: 5;
}

.wheel-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group label {
    font-weight: 600;
    color: #000000;
    font-size: 14px;
}

.wheel-input-wrapper {
    display: flex;
    gap: 10px;
}

.wheel-input-wrapper input[type="color"] {
    width: 60px;
    height: 50px;
    border: none;
    cursor: pointer;
    background: transparent;
}

.wheel-input-wrapper input[type="text"] {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #000000;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.control-group select {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
    color: #000000;
    font-size: 14px;
    cursor: pointer;
}

.base-color-preview {
    width: 100%;
    height: 80px;
    background: #0077be;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Harmony Display */
.harmony-groups {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.harmony-group {
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.harmony-group h3 {
    color: #000000;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.harmony-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.harmony-swatch {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-end;
    padding: 5px;
}

.harmony-swatch:hover {
    transform: translateY(-4px);
}

.harmony-swatch span {
    color: #ffffff;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 5px;
    width: 100%;
    text-align: center;
}

/* Color Codes Section */
.codes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 20px;
}

.code-card {
    padding: 15px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.code-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.code-color-preview {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.code-card-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin: 0;
}

.code-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.code-field label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
}

.code-field input {
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-field input:hover {
    background: rgba(220, 20, 60, 0.05);
    border-color: #dc143c;
}

.code-field input:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

/* Color Theory Section */
.color-theory-section {
    margin-top: 30px;
}

.color-theory-section h2 {
    color: #000000;
    font-size: 24px;
    margin-bottom: 15px;
}

.color-theory-section h2.mt-section {
    margin-top: 40px;
}

.theory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 20px;
    margin-top: 20px;
}

.theory-card {
    padding: 25px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.theory-card h3 {
    color: #000000;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.theory-card p {
    color: #333333;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.theory-card p:last-child {
    margin-bottom: 0;
}

.theory-card ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #333333;
    font-size: 14px;
    line-height: 1.7;
}

.theory-card li {
    margin-bottom: 5px;
}

/* Harmony Explanations */
.harmony-explanations {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 25px;
}

.harmony-explanation {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    align-items: start;
}

.harmony-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.demo-color {
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.harmony-info h3 {
    color: #000000;
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.harmony-info p {
    color: #333333;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.harmony-info p:last-child {
    margin-bottom: 0;
}

.harmony-info strong {
    color: #000000;
}

/* Design Tips */
.design-tips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tip-card {
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 4px solid #dc143c;
}

.tip-card h4 {
    color: #000000;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.tip-card p {
    color: #333333;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        padding: 15px;
    }
    
    .picker-controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .color-preview-large {
        width: 120px;
        height: 120px;
    }
    
    .harmony-colors {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .themes-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    }
    
    .styles-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
        gap: 20px;
    }
    
    /* Color Wheel - 992px */
    .wheel-container {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }
    
    .wheel-wrapper {
        width: 350px;
        height: 350px;
        max-width: 90vw;
    }
    
    #colorWheel {
        width: 100%;
        height: 100%;
        max-width: 350px;
        max-height: 350px;
    }
    
    .wheel-controls {
        width: 100%;
        max-width: 400px;
    }
    
    .harmony-swatch {
        width: 70px;
        height: 70px;
    }
    
    /* Color Theory - 992px */
    .harmony-explanation {
        grid-template-columns: 150px 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .demo-color {
        width: 40px;
        height: 40px;
    }
    
    .style-card {
        padding: 20px;
    }
    
    .style-header h3 {
        font-size: 18px;
    }
    
    .preview-box {
        min-height: 100px;
        padding: 20px;
    }
    
    .preview-box-wrapper {
        min-height: 90px;
        padding: 12px;
    }
    
    .style-code pre {
        font-size: 12px;
        padding: 12px;
    }
    
    .page-intro {
        padding: 25px;
    }
    
    .page-intro p {
        font-size: 15px;
    }
    
    .search-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .morphism {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .header .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .header-nav {
        float: none;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
    }
    
    .header-nav .btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
        padding: 10px 15px;
    }
    
    .admin-header .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-header h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .admin-nav {
        float: none;
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
    }
    
    .admin-nav span {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .admin-nav .btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }
    
    .picker-controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .color-display {
        flex-direction: column;
        align-items: center;
    }
    
    .color-preview-large {
        width: 100%;
        max-width: 200px;
        height: 150px;
    }
    
    .color-info {
        width: 100%;
    }
    
    .input-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .input-wrapper input[type="color"] {
        width: 100%;
        height: 60px;
    }
    
    .input-wrapper input[type="text"] {
        width: 100%;
        padding: 14px;
        font-size: 18px;
    }
    
    .color-actions {
        justify-content: center;
    }
    
    .color-actions .btn {
        flex: 1;
        min-width: 80px;
        padding: 12px 10px;
        font-size: 13px;
    }
    
    section h2 {
        font-size: 20px;
    }
    
    .harmony-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 100px;
        padding: 12px 10px;
        font-size: 12px;
        text-align: center;
    }
    
    .harmony-colors {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .harmony-color {
        height: 100px;
    }
    
    .themes-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-card {
        padding: 15px;
    }
    
    .theme-colors {
        gap: 5px;
    }
    
    .theme-color {
        height: 40px;
    }
    
    .theme-card .btn {
        width: 100%;
        margin-top: 5px;
    }
    
    .theme-details input {
        font-size: 13px !important;
        padding: 10px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .styles-grid {
        grid-template-columns: 1fr;
    }
    
    .style-card {
        padding: 15px;
    }
    
    .style-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .style-header h3 {
        font-size: 18px;
    }
    
    .search-section {
        padding: 15px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input {
        width: 100%;
        min-width: unset;
        padding: 12px;
    }
    
    .search-form .btn {
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header h2 {
        margin-bottom: 0;
    }
    
    .pagination {
        padding: 15px;
        gap: 8px;
    }
    
    .pagination .btn {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .page-info {
        width: 100%;
        text-align: center;
        order: -1;
        padding: 0 0 10px 0;
    }
    
    .palette-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .palette-color {
        height: 80px;
    }
    
    .saved-colors {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .saved-color {
        height: 70px;
    }
    
    .login-box {
        margin: 50px auto;
        padding: 20px;
    }
    
    .login-box h1 {
        font-size: 24px;
    }
    
    .footer {
        padding: 15px 0;
        margin-top: 30px;
    }
    
    .footer p {
        font-size: 13px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    /* Data tables */
    .data-table {
        margin-top: 15px;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .color-swatch {
        width: 25px;
        height: 25px;
    }
    
    .btn-small {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    /* Form groups */
    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-group input[type="email"],
    .form-group select,
    .form-group textarea {
        padding: 14px 12px;
        font-size: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .copy-buttons {
        flex-direction: column;
    }
    
    .copy-buttons .btn {
        width: 100%;
    }
    
    /* Page intro */
    .page-intro {
        padding: 20px;
    }
    
    .page-intro h2 {
        font-size: 22px;
    }
    
    .page-intro p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Styles page specific */
    .style-preview {
        padding: 10px;
        margin: 15px 0;
    }
    
    .preview-box {
        min-height: 80px;
        padding: 15px;
        font-size: 14px;
    }
    
    .preview-box-wrapper {
        min-height: 80px;
        padding: 10px;
    }
    
    .style-type-badge {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .style-code {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .style-code label {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .style-code pre {
        padding: 12px;
        font-size: 12px;
        max-height: 200px;
        overflow-y: auto;
    }
    
    /* Color Wheel - 768px */
    .wheel-container {
        gap: 25px;
    }
    
    .wheel-wrapper {
        width: 300px;
        height: 300px;
        max-width: 90vw;
    }
    
    #colorWheel {
        width: 100%;
        height: 100%;
        max-width: 300px;
        max-height: 300px;
    }
    
    .wheel-center {
        width: 50px;
        height: 50px;
    }
    
    .wheel-marker {
        width: 20px;
        height: 20px;
    }
    
    .wheel-marker.base-marker {
        width: 24px;
        height: 24px;
    }
    
    .harmony-swatch {
        width: 60px;
        height: 60px;
    }
    
    .harmony-swatch span {
        font-size: 9px;
    }
    
    .code-card {
        padding: 12px;
    }
    
    .codes-container {
        grid-template-columns: 1fr;
    }
    
    /* Color Theory - 768px */
    .color-theory-section h2 {
        font-size: 20px;
    }
    
    .theory-card {
        padding: 20px;
    }
    
    .theory-card h3 {
        font-size: 16px;
    }
    
    .harmony-explanation {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .harmony-demo {
        justify-content: flex-start;
    }
    
    .demo-color {
        width: 45px;
        height: 45px;
    }
    
    .harmony-info h3 {
        font-size: 18px;
    }
    
    .tip-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .morphism {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .header-nav .btn {
        min-width: unset;
        flex: 1;
        padding: 8px 10px;
        font-size: 12px;
    }
    
    section h2 {
        font-size: 18px;
    }
    
    .tab-btn {
        padding: 10px 8px;
        font-size: 11px;
        min-width: 70px;
    }
    
    .harmony-colors {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .harmony-color {
        height: 80px;
    }
    
    .harmony-color span {
        font-size: 10px;
        padding: 3px 5px;
    }
    
    .theme-colors {
        grid-template-columns: repeat(5, 1fr);
        gap: 3px;
    }
    
    .theme-color {
        height: 30px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 5px;
        padding: 10px;
    }
    
    .info-item span:last-child {
        font-size: 14px;
    }
    
    .color-actions .btn {
        font-size: 12px;
        padding: 10px 8px;
    }
    
    .palette-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
    
    .palette-color {
        height: 60px;
        padding: 5px;
    }
    
    .palette-color span {
        font-size: 9px;
        padding: 2px 4px;
    }
    
    .saved-colors {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .saved-color {
        height: 60px;
    }
    
    .saved-color span {
        font-size: 8px;
    }
    
    .page-intro h2 {
        font-size: 20px;
    }
    
    .pagination .btn {
        padding: 8px 12px;
    }
    
    /* Styles page - 480px */
    .styles-grid {
        gap: 15px;
    }
    
    .style-card {
        padding: 12px;
    }
    
    .style-header h3 {
        font-size: 16px;
    }
    
    .style-type-badge {
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .style-preview {
        padding: 8px;
        margin: 10px 0;
    }
    
    .preview-box {
        min-height: 60px;
        padding: 10px;
        font-size: 12px;
    }
    
    .preview-box-wrapper {
        min-height: 60px;
        padding: 8px;
    }
    
    .style-code {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .style-code label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    /* Code blocks */
    .style-code pre {
        font-size: 11px;
        padding: 10px;
        max-height: 150px;
    }
    
    .copy-buttons {
        gap: 8px;
    }
    
    .copy-buttons .btn {
        padding: 10px;
        font-size: 12px;
    }
    
    /* Color Wheel - 480px */
    .wheel-wrapper {
        width: 260px;
        height: 260px;
        max-width: 85vw;
    }
    
    #colorWheel {
        width: 100%;
        height: 100%;
        max-width: 260px;
        max-height: 260px;
    }
    
    .wheel-center {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .wheel-marker {
        width: 16px;
        height: 16px;
        border-width: 2px;
    }
    
    .wheel-marker.base-marker {
        width: 20px;
        height: 20px;
        border-width: 3px;
    }
    
    .wheel-controls {
        gap: 20px;
    }
    
    .base-color-preview {
        height: 60px;
    }
    
    .harmony-group {
        padding: 15px;
    }
    
    .harmony-swatch {
        width: 50px;
        height: 50px;
    }
    
    .harmony-swatch span {
        font-size: 8px;
        padding: 2px 3px;
    }
    
    .code-field input {
        padding: 8px;
        font-size: 12px;
    }    
    /* Color Theory - 480px */
    .color-theory-section h2 {
        font-size: 18px;
    }
    
    .color-theory-section h2.mt-section {
        margin-top: 30px;
    }
    
    .theory-grid {
        gap: 15px;
    }
    
    .theory-card {
        padding: 15px;
    }
    
    .theory-card h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .theory-card p,
    .theory-card ul {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .harmony-explanations {
        gap: 20px;
    }
    
    .harmony-explanation {
        padding: 15px;
    }
    
    .demo-color {
        width: 35px;
        height: 35px;
    }
    
    .harmony-info h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .harmony-info p {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .design-tips {
        gap: 15px;
    }
    
    .tip-card {
        padding: 12px;
        border-left-width: 3px;
    }
    
    .tip-card h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .tip-card p {
        font-size: 13px;
    }
}