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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Main page styling */
|
| 2 |
+
.stApp {
|
| 3 |
+
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
| 4 |
+
}
|
| 5 |
+
|
| 6 |
+
/* Main content styling */
|
| 7 |
+
.main {
|
| 8 |
+
padding: 2.5rem;
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
/* Header styling */
|
| 12 |
+
.stTitle {
|
| 13 |
+
color: #e2e8f0;
|
| 14 |
+
font-weight: 600;
|
| 15 |
+
text-align: center;
|
| 16 |
+
margin-bottom: 2rem;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
/* Button styling */
|
| 20 |
+
.stButton button {
|
| 21 |
+
width: 100%;
|
| 22 |
+
border-radius: 8px;
|
| 23 |
+
height: 3rem;
|
| 24 |
+
background-color: #a794e3;
|
| 25 |
+
color: #1a1a2e;
|
| 26 |
+
border: none;
|
| 27 |
+
transition: all 0.3s ease;
|
| 28 |
+
font-weight: 600;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
.stButton button:hover {
|
| 32 |
+
background-color: #9380d0;
|
| 33 |
+
transform: translateY(-2px);
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
/* File uploader styling */
|
| 37 |
+
.stUploadButton {
|
| 38 |
+
background-color: #242b42;
|
| 39 |
+
padding: 1.5rem;
|
| 40 |
+
border-radius: 8px;
|
| 41 |
+
border: 2px dashed #a794e3;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/* Upload button specific styling */
|
| 45 |
+
[data-testid="stFileUploader"] {
|
| 46 |
+
background-color: #242b42;
|
| 47 |
+
padding: 1rem;
|
| 48 |
+
border-radius: 8px;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
[data-testid="stFileUploader"] > section {
|
| 52 |
+
background-color: #1f2937;
|
| 53 |
+
border: 2px dashed #a794e3;
|
| 54 |
+
padding: 1rem;
|
| 55 |
+
border-radius: 8px;
|
| 56 |
+
color: #e2e8f0;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
/* Download button specific styling */
|
| 60 |
+
.stDownloadButton button {
|
| 61 |
+
background-color: #94c3e3;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.stDownloadButton button:hover {
|
| 65 |
+
background-color: #80b0d0;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/* Alert and notice boxes */
|
| 69 |
+
.stAlert {
|
| 70 |
+
padding: 1.5rem;
|
| 71 |
+
border-radius: 8px;
|
| 72 |
+
background-color: #242b42;
|
| 73 |
+
border-left: 4px solid #a794e3;
|
| 74 |
+
color: #e2e8f0;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
/* Privacy notice styling */
|
| 78 |
+
div[data-testid="stMarkdownContainer"] > div {
|
| 79 |
+
background-color: #242b42 !important;
|
| 80 |
+
padding: 1.2rem;
|
| 81 |
+
border-radius: 8px;
|
| 82 |
+
border: 1px solid #394056;
|
| 83 |
+
margin-bottom: 2rem;
|
| 84 |
+
color: #e2e8f0;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
/* Metrics styling */
|
| 88 |
+
.stMetric {
|
| 89 |
+
background-color: #242b42;
|
| 90 |
+
padding: 1rem;
|
| 91 |
+
border-radius: 8px;
|
| 92 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
|
| 93 |
+
color: #e2e8f0;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.stMetric label {
|
| 97 |
+
color: #e2e8f0;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.stMetric [data-testid="stMetricValue"] {
|
| 101 |
+
color: #a794e3;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
/* DataFrame styling */
|
| 105 |
+
.stDataFrame {
|
| 106 |
+
background-color: #242b42;
|
| 107 |
+
padding: 1rem;
|
| 108 |
+
border-radius: 8px;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
[data-testid="stDataFrameResizable"] {
|
| 112 |
+
background-color: #1f2937;
|
| 113 |
+
color: #e2e8f0;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
/* Custom positive/negative sentiment colors */
|
| 117 |
+
.positive-sentiment {
|
| 118 |
+
background-color: #2a3b2a !important;
|
| 119 |
+
color: #94e3a7 !important;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.negative-sentiment {
|
| 123 |
+
background-color: #3b2a2a !important;
|
| 124 |
+
color: #e39494 !important;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
/* Instructions box styling */
|
| 128 |
+
div[data-testid="stMarkdownContainer"] ol {
|
| 129 |
+
background-color: #242b42;
|
| 130 |
+
padding: 1.5rem 1.5rem 1.5rem 3rem;
|
| 131 |
+
border-radius: 8px;
|
| 132 |
+
margin-top: 2rem;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
div[data-testid="stMarkdownContainer"] li {
|
| 136 |
+
color: #e2e8f0;
|
| 137 |
+
margin: 0.8rem 0;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
/* Browse files button styling */
|
| 141 |
+
button[data-testid="baseButton-secondary"] {
|
| 142 |
+
background-color: #a794e3 !important;
|
| 143 |
+
color: #1a1a2e !important;
|
| 144 |
+
border: none !important;
|
| 145 |
+
font-weight: 600;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
button[data-testid="baseButton-secondary"]:hover {
|
| 149 |
+
background-color: #9380d0 !important;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
/* Text color overrides */
|
| 153 |
+
p, h1, h2, h3, h4, h5, h6 {
|
| 154 |
+
color: #e2e8f0 !important;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
/* File uploader text */
|
| 158 |
+
[data-testid="stFileUploader"] p {
|
| 159 |
+
color: #e2e8f0 !important;
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
/* Add some glow effects to interactive elements */
|
| 163 |
+
.stButton button,
|
| 164 |
+
.stDownloadButton button,
|
| 165 |
+
button[data-testid="baseButton-secondary"] {
|
| 166 |
+
box-shadow: 0 0 15px rgba(167, 148, 227, 0.2);
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
.stButton button:hover,
|
| 170 |
+
.stDownloadButton button:hover,
|
| 171 |
+
button[data-testid="baseButton-secondary"]:hover {
|
| 172 |
+
box-shadow: 0 0 20px rgba(167, 148, 227, 0.3);
|
| 173 |
+
}
|