.pantone-converter{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;max-width:800px;margin:0 auto;padding:1.5rem;min-height:100vh;transition:background-color .3s,color .3s;background-color:var(--bg-color);color:var(--text-color)}.pantone-converter.light-mode{--bg-color:#f8f9fa;--text-color:#333;--card-bg:#fff;--input-bg:#fff;--input-border:#ddd;--history-item-bg:#f5f5f5;--history-item-border:#eaeaea}.pantone-converter.dark-mode{--bg-color:#1a1a1a;--text-color:#f1f1f1;--card-bg:#2c2c2c;--input-bg:#333;--input-border:#444;--history-item-bg:#333;--history-item-border:#444}header{text-align:center;margin-bottom:2rem}header h1{margin:0 0 .5rem;font-size:2.5rem}@media(max-width:600px){header h1{font-size:2rem}}header p{font-size:1.1rem;opacity:.8;margin:0}.theme-toggle{display:flex;justify-content:flex-end;margin-bottom:1rem}.theme-toggle button{background:none;border:none;font-size:1.5rem;cursor:pointer;padding:.5rem;border-radius:50%;transition:background-color .3s}.theme-toggle button:hover{background-color:rgba(128,128,128,.2)}.converter-container{background-color:var(--card-bg);border-radius:8px;box-shadow:0 4px 6px rgba(0,0,0,.1);padding:1.5rem;margin-bottom:1.5rem;position:relative}.input-group{margin-bottom:1.5rem}.input-group label{display:block;margin-bottom:.5rem;font-weight:600}.input-group .input-with-button{display:flex;gap:.5rem}@media(max-width:600px){.input-group .input-with-button{flex-direction:column}}.input-group input{flex:1;padding:.75rem 1rem;border:1px solid var(--input-border);border-radius:8px;font-size:1rem;background-color:var(--input-bg);color:var(--text-color);transition:border-color .3s}.input-group input:focus{outline:none;border-color:#3498db}.input-group button{padding:.75rem 1.5rem;background-color:#3498db;color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:background-color .3s;min-width:120px}.input-group button:hover{background-color:#2980b9}.input-group button:disabled{opacity:.7;cursor:not-allowed}.input-group button.loading{position:relative}.input-group button.loading:after{content:"";width:1rem;height:1rem;border-radius:50%;border:2px solid rgba(0,0,0,0);border-top-color:#fff;position:absolute;right:.75rem;top:calc(50% - .5rem);animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.error-message{color:#e74c3c;margin-top:.5rem;font-size:.9rem}.result-display{display:flex;align-items:center;gap:1.5rem}@media(max-width:500px){.result-display{flex-direction:column;align-items:stretch}}.result-display .color-preview{width:100px;height:100px;border-radius:8px;border:1px solid var(--input-border)}@media(max-width:500px){.result-display .color-preview{width:100%;height:80px}}.result-display .result-text{flex:1}.result-display .result-text h3{margin:0 0 .5rem;font-size:1.2rem}.result-display .result-text .hex-value{font-size:1.5rem;font-weight:600;display:flex;align-items:center;gap:.5rem}.result-display .copy-button{background:none;border:none;font-size:1.2rem;cursor:pointer;padding:.3rem;border-radius:4px;transition:background-color .3s}.result-display .copy-button:hover{background-color:rgba(128,128,128,.2)}.copy-tooltip{position:fixed;top:2rem;left:50%;transform:translateX(-50%) translateY(-2rem);background-color:rgba(0,0,0,.8);color:#fff;padding:.5rem 1rem;border-radius:8px;font-size:.9rem;opacity:0;transition:opacity .3s,transform .3s;pointer-events:none;z-index:1000}.copy-tooltip.visible{opacity:1;transform:translateX(-50%) translateY(0)}.history-section{background-color:var(--card-bg);border-radius:8px;box-shadow:0 4px 6px rgba(0,0,0,.1);padding:1.5rem;margin-bottom:1.5rem}.history-section .history-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.history-section .history-header h2{margin:0;font-size:1.5rem}.history-section .history-header .clear-history-btn{background:none;border:1px solid var(--input-border);border-radius:8px;padding:.4rem .8rem;font-size:.9rem;cursor:pointer;transition:background-color .3s}.history-section .history-header .clear-history-btn:hover{background-color:rgba(128,128,128,.2)}.history-section .history-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}@media(max-width:500px){.history-section .history-list{grid-template-columns:1fr}}.history-section .history-item{background-color:var(--history-item-bg);border:1px solid var(--history-item-border);border-radius:8px;padding:.75rem;display:flex;align-items:center;gap:.75rem;transition:transform .3s}.history-section .history-item:hover{transform:translateY(-2px)}.history-section .history-item .history-color{width:30px;height:30px;border-radius:4px;border:1px solid var(--input-border);flex-shrink:0}.history-section .history-item .history-details{flex:1;overflow:hidden}.history-section .history-item .history-details .history-pantone{display:block;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-section .history-item .history-details .history-hex{display:block;font-weight:600;font-size:.95rem}.history-section .history-item .history-copy-btn{background:none;border:none;font-size:1rem;cursor:pointer;padding:.2rem;border-radius:4px;flex-shrink:0;transition:background-color .3s}.history-section .history-item .history-copy-btn:hover{background-color:rgba(128,128,128,.2)}footer{text-align:center;margin-top:2rem;opacity:.7;font-size:.9rem}footer p{margin:.5rem 0}@media(max-width:768px){.pantone-converter{padding:1rem}header h1{font-size:1.8rem}}