/* CannaFarm Dashboard */

.cf-dashboard {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Not-logged-in state */
.cf-dash-noauth {
    text-align: center;
    padding: 60px 20px;
}
.cf-dash-noauth-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.cf-dash-noauth p {
    color: #888;
    font-size: 16px;
}

/* Dashboard content wrapper */
.cf-dash-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Avatar icon (emoji fallback) */
.cf-dash-avatar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 40px;
}

/* Email text */
.cf-dash-email {
    color: #888;
    font-size: 13px;
    margin: 4px 0 0;
}

.cf-dash-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}

.cf-dash-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 18px;
}

.cf-dash-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cf-dash-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    flex-shrink: 0;
}

.cf-dash-profile-info {
    min-width: 0;
}

.cf-dash-name {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cf-dash-badge {
    display: inline-block;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.cf-dash-meta {
    color: #888;
    font-size: 13px;
    margin: 2px 0;
}

.cf-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cf-dash-stat,
.cf-dash-stat-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cf-dash-stat-active {
    border: 2px solid #4CAF50;
}

.cf-dash-stat-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.cf-dash-stat-value {
    color: #4CAF50;
    font-size: 24px;
    font-weight: 700;
}

.cf-dash-stat-label {
    color: #888;
    font-size: 12px;
}

.cf-dash-play {
    text-align: center;
    padding: 20px;
}

.cf-dash-play-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #4CAF50;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
}

.cf-dash-play-btn:hover {
    background: #43A047;
    transform: translateY(-1px);
}

.cf-dash-field {
    margin-bottom: 16px;
}

.cf-dash-field label {
    display: block;
    color: #ccc;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.cf-dash-field input {
    width: 100%;
    padding: 11px 14px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.cf-dash-field input:focus {
    border-color: #4CAF50;
}

.cf-dash-submit {
    padding: 11px 24px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.cf-dash-submit:hover {
    background: #43A047;
}

.cf-dash-submit:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Settings section */
.cf-dash-settings {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 24px;
}
.cf-dash-settings h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #fff;
}
.cf-dash-setting-block {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #222;
}
.cf-dash-setting-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.cf-dash-setting-block h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    margin: 0 0 12px;
}
.cf-dash-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Messages */
.cf-dash-msg {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.4;
    min-height: 20px;
}
.cf-dash-msg--success,
.cf-dash-msg-success {
    color: #4CAF50;
}
.cf-dash-msg--error,
.cf-dash-msg-error {
    color: #ef5350;
}

@media screen and (max-width: 600px) {
    .cf-dashboard {
        margin: 20px auto;
        gap: 16px;
    }
    .cf-dash-profile {
        flex-direction: column;
        text-align: center;
    }
    .cf-dash-avatar {
        width: 64px;
        height: 64px;
    }
    .cf-dash-name {
        font-size: 18px;
    }
    .cf-dash-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .cf-dash-stat-card {
        padding: 14px 8px;
    }
    .cf-dash-stat-value {
        font-size: 20px;
    }
    .cf-dash-card {
        padding: 18px;
    }
}
