| 1 | /* Standard button styles */ |
| 2 | button, |
| 3 | input[type="submit"], |
| 4 | .button { |
| 5 | display: inline-block; |
| 6 | padding: 0.5rem 1rem; |
| 7 | background-color: #3b82f6; |
| 8 | color: white; |
| 9 | border: none; |
| 10 | border-radius: 0.25rem; |
| 11 | font-size: 1rem; |
| 12 | font-weight: 500; |
| 13 | cursor: pointer; |
| 14 | text-decoration: none; |
| 15 | line-height: 1.5; |
| 16 | transition: background-color 0.2s, transform 0.1s; |
| 17 | } |
| 18 | |
| 19 | button:hover, |
| 20 | input[type="submit"]:hover, |
| 21 | .button:hover { |
| 22 | background-color: #2563eb; |
| 23 | } |
| 24 | |
| 25 | button:active, |
| 26 | input[type="submit"]:active, |
| 27 | .button:active { |
| 28 | transform: translateY(1px); |
| 29 | } |
| 30 | |
| 31 | /* Secondary button */ |
| 32 | button.secondary, |
| 33 | input[type="submit"].secondary, |
| 34 | .button.secondary { |
| 35 | background-color: #6b7280; |
| 36 | } |
| 37 | |
| 38 | button.secondary:hover, |
| 39 | input[type="submit"].secondary:hover, |
| 40 | .button.secondary:hover { |
| 41 | background-color: #4b5563; |
| 42 | } |
| 43 | |
| 44 | /* Danger button */ |
| 45 | button.danger, |
| 46 | input[type="submit"].danger, |
| 47 | .button.danger { |
| 48 | background-color: #ef4444; |
| 49 | } |
| 50 | |
| 51 | button.danger:hover, |
| 52 | input[type="submit"].danger:hover, |
| 53 | .button.danger:hover { |
| 54 | background-color: #dc2626; |
| 55 | } |
| 56 | |
| 57 | /* Disabled state */ |
| 58 | button:disabled, |
| 59 | input[type="submit"]:disabled, |
| 60 | .button:disabled { |
| 61 | opacity: 0.6; |
| 62 | cursor: not-allowed; |
| 63 | } |
| 64 | |
| 65 | button.link { |
| 66 | border: none; |
| 67 | background: none; |
| 68 | color: inherit; |
| 69 | } |
| 70 | |
| 71 | button.link:hover { |
| 72 | background: var(--hover-color); |
| 73 | } |
| 74 | |