/* ============================================================
   zkPass Cardano Demo - Styles
   ============================================================ */

/* ------------------------------------------------------------
   Base & Reset
   ------------------------------------------------------------ */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #eee;
}

h1 {
    text-align: center;
    color: #00d4ff;
}

/* ------------------------------------------------------------
   Card Component
   ------------------------------------------------------------ */
.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ------------------------------------------------------------
   Form Elements
   ------------------------------------------------------------ */
label {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
    font-size: 14px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #0f0f1a;
    color: #eee;
    font-size: 14px;
    font-family: monospace;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #00d4ff;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
button {
    padding: 15px 30px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #1a1a2e;
    font-weight: bold;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

/* Large button variant */
.btn-large {
    width: 100%;
    padding: 20px;
    font-size: 18px;
}

/* ------------------------------------------------------------
   Status Messages
   ------------------------------------------------------------ */
.status {
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

.status.success {
    display: block;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
}

.status.error {
    display: block;
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
}

.status.info {
    display: block;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid #00d4ff;
}

/* ------------------------------------------------------------
   Wallet Status
   ------------------------------------------------------------ */
.wallet-status {
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.wallet-status.connected {
    border-left: 4px solid #00ff88;
}

.wallet-status.disconnected {
    border-left: 4px solid #ff4444;
}

/* ------------------------------------------------------------
   Result Display
   ------------------------------------------------------------ */
.result-box {
    background: #0f0f1a;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

/* Verified record display */
.verified-record {
    text-align: center;
    padding: 20px;
}

.verified-record__icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.verified-record__title {
    font-size: 18px;
    font-weight: bold;
    color: #00d4ff;
}

.verified-record__time {
    font-size: 24px;
    margin-top: 10px;
}

.verified-record__details {
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}

/* ------------------------------------------------------------
   Loading Animation
   ------------------------------------------------------------ */
.loading {
    display: inline-block;
    margin-left: 10px;
}

.loading::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ------------------------------------------------------------
   Utility Classes
   ------------------------------------------------------------ */
.hint {
    font-size: 12px;
    color: #666;
    margin-top: -10px;
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
}

.mt-15 {
    margin-top: 15px;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.network-badge {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Links */
a.link {
    color: #00d4ff;
    text-decoration: none;
}

a.link:hover {
    text-decoration: underline;
}

/* ============================================================
   Target Page - Button Verification
   ============================================================ */

/* Centered layout for target page */
body.target-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 30px;
}

/* Button Grid */
.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Verify Buttons */
.btn-verify {
    width: 100%;
    padding: 20px 30px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-weight: bold;
}

.btn-verify:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-verify:disabled {
    background: #555 !important;
    color: #888;
    cursor: not-allowed;
    transform: none;
}

/* Button color variants */
.btn-verify.btn-red {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}
.btn-verify.btn-red:hover:not(:disabled) {
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.btn-verify.btn-purple {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}
.btn-verify.btn-purple:hover:not(:disabled) {
    box-shadow: 0 5px 20px rgba(162, 155, 254, 0.4);
}

.btn-verify.btn-green {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
}
.btn-verify.btn-green:hover:not(:disabled) {
    box-shadow: 0 5px 20px rgba(85, 239, 196, 0.4);
}

.btn-verify.btn-yellow {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
}
.btn-verify.btn-yellow:hover:not(:disabled) {
    box-shadow: 0 5px 20px rgba(253, 203, 110, 0.4);
}

/* Session info */
.session-info {
    font-family: monospace;
    font-size: 11px;
    color: #666;
    text-align: center;
    margin-top: 15px;
}

/* Success icon */
.success-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

/* Hidden utility */
.hidden {
    display: none;
}
