Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,151 +1,154 @@
|
|
| 1 |
-
:root{
|
| 2 |
-
--
|
| 3 |
-
--
|
| 4 |
-
--
|
| 5 |
-
--bg:#ffffff;
|
| 6 |
-
--
|
| 7 |
-
--
|
|
|
|
|
|
|
| 8 |
}
|
| 9 |
|
| 10 |
-
*
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
color:
|
|
|
|
| 17 |
}
|
| 18 |
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
border-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
| 27 |
}
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
justify-content:center;
|
| 33 |
-
margin-bottom:
|
| 34 |
-
}
|
| 35 |
-
#logo{
|
| 36 |
-
height:50px;
|
| 37 |
-
object-fit:contain;
|
| 38 |
}
|
|
|
|
| 39 |
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
border-color:var(--purple);
|
| 55 |
-
box-shadow:0 0 0 3px rgba(138,43,226,.15);
|
| 56 |
}
|
| 57 |
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
}
|
| 74 |
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
}
|
| 101 |
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
}
|
| 113 |
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
padding:
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
font-weight:700;
|
| 126 |
-
font-size:16px;
|
| 127 |
-
cursor:pointer;
|
| 128 |
-
transition:.2s ease;
|
| 129 |
-
}
|
| 130 |
-
#copy-and-open-btn:hover,
|
| 131 |
-
#copy-and-open-btn:focus{
|
| 132 |
-
background:var(--purple);
|
| 133 |
-
color:#fff;
|
| 134 |
-
outline:none;
|
| 135 |
}
|
| 136 |
|
| 137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
|
| 139 |
-
/* Accessibility
|
| 140 |
-
button:focus-visible,
|
| 141 |
-
outline:3px solid rgba(
|
| 142 |
-
outline-offset:2px;
|
| 143 |
}
|
| 144 |
|
| 145 |
-
/*
|
| 146 |
-
@media (max-width:520px){
|
| 147 |
-
.chat-container{margin:20px 12px; padding:22px;}
|
| 148 |
-
.options-container{grid-template-columns:1fr}
|
| 149 |
-
.input-area{grid-template-columns:1fr}
|
| 150 |
-
#start-chat-btn{width:100%}
|
| 151 |
}
|
|
|
|
| 1 |
+
:root {
|
| 2 |
+
--primary-color-start: #4F46E5; /* Indigo */
|
| 3 |
+
--primary-color-end: #8B5CF6; /* Violet */
|
| 4 |
+
--background-color: #f8f9fc;
|
| 5 |
+
--container-bg: #ffffff;
|
| 6 |
+
--text-color: #1f2937;
|
| 7 |
+
--label-color: #374151;
|
| 8 |
+
--border-color: #d1d5db;
|
| 9 |
+
--shadow-color: rgba(0, 0, 0, 0.08);
|
| 10 |
}
|
| 11 |
|
| 12 |
+
/* Base */
|
| 13 |
+
* { box-sizing: border-box; }
|
| 14 |
+
html, body {
|
| 15 |
+
height: 100%;
|
| 16 |
+
margin: 0;
|
| 17 |
+
background: var(--background-color);
|
| 18 |
+
color: var(--text-color);
|
| 19 |
+
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
| 20 |
}
|
| 21 |
|
| 22 |
+
/* Container */
|
| 23 |
+
.chat-container {
|
| 24 |
+
max-width: 450px;
|
| 25 |
+
margin: 40px auto;
|
| 26 |
+
background: var(--container-bg);
|
| 27 |
+
border-radius: 15px;
|
| 28 |
+
border-top: 6px solid var(--primary-color-start);
|
| 29 |
+
box-shadow: 0 4px 15px var(--shadow-color);
|
| 30 |
+
padding: 30px;
|
| 31 |
}
|
| 32 |
|
| 33 |
+
/* Header */
|
| 34 |
+
.chat-header {
|
| 35 |
+
display: flex;
|
| 36 |
+
justify-content: center;
|
| 37 |
+
margin-bottom: 18px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
}
|
| 39 |
+
#logo { height: 50px; object-fit: contain; }
|
| 40 |
|
| 41 |
+
/* Short input */
|
| 42 |
+
.input-area { margin-bottom: 14px; }
|
| 43 |
+
.input-area input {
|
| 44 |
+
width: 100%;
|
| 45 |
+
padding: 18px;
|
| 46 |
+
border: 1px solid var(--border-color);
|
| 47 |
+
border-radius: 8px;
|
| 48 |
+
font-size: 17px;
|
| 49 |
+
outline: none;
|
| 50 |
+
background: #fff;
|
| 51 |
+
}
|
| 52 |
+
.input-area input:focus {
|
| 53 |
+
border-color: var(--primary-color-start);
|
| 54 |
+
box-shadow: 0 0 0 3px rgba(79,70,229,.15);
|
|
|
|
|
|
|
| 55 |
}
|
| 56 |
|
| 57 |
+
/* Options */
|
| 58 |
+
.options-stack { display: grid; gap: 12px; margin-bottom: 14px; }
|
| 59 |
+
.option-group {
|
| 60 |
+
background: #fff;
|
| 61 |
+
border: 1px solid var(--border-color);
|
| 62 |
+
border-radius: 10px;
|
| 63 |
+
padding: 10px;
|
| 64 |
+
}
|
| 65 |
+
.group-label {
|
| 66 |
+
font-size: 13px;
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
color: var(--label-color);
|
| 69 |
+
margin-bottom: 6px;
|
| 70 |
+
}
|
| 71 |
+
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
|
|
|
|
| 72 |
|
| 73 |
+
/* Buttons */
|
| 74 |
+
.btn {
|
| 75 |
+
padding: 12px 14px;
|
| 76 |
+
border-radius: 8px;
|
| 77 |
+
border: 1px solid var(--border-color);
|
| 78 |
+
background: #fff;
|
| 79 |
+
color: var(--primary-color-start);
|
| 80 |
+
font-weight: 700;
|
| 81 |
+
font-size: 14px;
|
| 82 |
+
cursor: pointer;
|
| 83 |
+
transition: .2s ease;
|
| 84 |
+
}
|
| 85 |
+
.btn:hover,
|
| 86 |
+
.btn:focus {
|
| 87 |
+
background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
|
| 88 |
+
color: #fff;
|
| 89 |
+
outline: none;
|
| 90 |
+
}
|
| 91 |
+
.btn.primary {
|
| 92 |
+
width: 100%;
|
| 93 |
+
padding: 18px;
|
| 94 |
+
font-size: 18px;
|
| 95 |
+
background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
|
| 96 |
+
color: #fff;
|
| 97 |
+
border: none;
|
| 98 |
+
}
|
| 99 |
+
.btn.primary:hover { opacity: .92; }
|
| 100 |
+
.btn.ghost { background: #fff; color: var(--primary-color-start); }
|
| 101 |
+
.toggle.selected {
|
| 102 |
+
background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
|
| 103 |
+
color: #fff;
|
| 104 |
}
|
| 105 |
|
| 106 |
+
/* Composer */
|
| 107 |
+
.composer { display: grid; gap: 10px; margin-bottom: 14px; }
|
| 108 |
+
#long-input {
|
| 109 |
+
width: 100%;
|
| 110 |
+
padding: 16px;
|
| 111 |
+
border: 1px solid var(--border-color);
|
| 112 |
+
border-radius: 8px;
|
| 113 |
+
resize: vertical;
|
| 114 |
+
min-height: 120px;
|
| 115 |
+
font-size: 16px;
|
| 116 |
+
background: #fff;
|
| 117 |
+
outline: none;
|
| 118 |
+
}
|
| 119 |
+
#long-input:focus {
|
| 120 |
+
border-color: var(--primary-color-start);
|
| 121 |
+
box-shadow: 0 0 0 3px rgba(79,70,229,.15);
|
| 122 |
}
|
| 123 |
|
| 124 |
+
/* Response area */
|
| 125 |
+
.chat-output {
|
| 126 |
+
min-height: 160px;
|
| 127 |
+
background: #f3f4f6;
|
| 128 |
+
border: 1px solid var(--border-color);
|
| 129 |
+
border-radius: 8px;
|
| 130 |
+
padding: 20px;
|
| 131 |
+
font-size: 16px;
|
| 132 |
+
line-height: 1.6;
|
| 133 |
+
color: var(--text-color);
|
| 134 |
+
white-space: pre-wrap;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
}
|
| 136 |
|
| 137 |
+
/* Footer */
|
| 138 |
+
.action-footer {
|
| 139 |
+
margin-top: 12px;
|
| 140 |
+
display: flex;
|
| 141 |
+
justify-content: flex-end;
|
| 142 |
+
}
|
| 143 |
+
.hidden { display: none; }
|
| 144 |
|
| 145 |
+
/* Accessibility */
|
| 146 |
+
button:focus-visible, textarea:focus-visible, input:focus-visible {
|
| 147 |
+
outline: 3px solid rgba(79,70,229,.35);
|
| 148 |
+
outline-offset: 2px;
|
| 149 |
}
|
| 150 |
|
| 151 |
+
/* Mobile */
|
| 152 |
+
@media (max-width: 520px) {
|
| 153 |
+
.chat-container { margin: 20px 12px; padding: 22px; }
|
|
|
|
|
|
|
|
|
|
| 154 |
}
|