File size: 3,811 Bytes
1b78809
 
 
 
c4cc9b6
1b78809
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c4cc9b6
 
1b78809
 
 
c4cc9b6
 
1b78809
 
 
 
c4cc9b6
 
1b78809
 
 
 
c4cc9b6
 
1b78809
 
 
 
c4cc9b6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    min-height: 100vh;
}

/* Casio Button Styles */
.casio-btn {
    position: relative;
    height: 48px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.1s ease-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    select: none;
    border: none;
    overflow: visible;
}

.casio-btn .func-label {
    font-size: 9px;
    position: absolute;
    top: 2px;
    color: #d97706;
    font-weight: 600;
}

.casio-btn .main-label {
    font-size: 14px;
    margin-top: 6px;
}

.casio-btn:active {
    transform: scale(0.95);
}

/* Button Color Variants */
.shift-btn, .mode-btn, .alpha-btn {
    background: linear-gradient(145deg, #374151, #1f2937);
    color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.shift-btn .func-label, .mode-btn .func-label, .alpha-btn .func-label {
    color: #3b82f6;
}

.on-btn {
    background: linear-gradient(145deg, #059669, #047857);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.on-btn .func-label {
    color: #fbbf24;
}

.action-btn {
    background: linear-gradient(145deg, #dc2626, #b91c1c);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

.action-btn .func-label {
    color: #fca5a5;
}

.func-btn {
    background: linear-gradient(145deg, #4b5563, #374151);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.func-btn .func-label {
    color: #d97706;
}

.num-btn {
    background: linear-gradient(145deg, #1f2937, #111827);
    color: #e5e7eb;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.op-btn {
    background: linear-gradient(145deg, #4b5563, #374151);
    color: #fbbf24;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.equals-btn {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Hover effects */
.casio-btn:hover {
    filter: brightness(1.1);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* History Items */
.history-item {
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

.history-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.history-item:hover .history-result {
    color: #818cf8;
}

.history-expression {
    color: #6b7280;
    margin-bottom: 2px;
}

.history-result {
    color: #e5e7eb;
    font-weight: 600;
    text-align: right;
}

/* Display styling for LCD effect */
#current-operand {
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 1px;
}

/* Active state for buttons */
.casio-btn.pressed {
    filter: brightness(0.8);
    transform: scale(0.95);
}