/* ============================================ */
/* TABURE UI COMPONENT LIBRARY                  */
/* BIREBIR FLUTTER WIDGET ESLESMESI             */
/* ============================================ */

/* ============================================ */
/* BUTTONS - TabureButton.dart                  */
/* Height: small=40, medium=48, large=56        */
/* Padding: small=16, medium=20, large=24       */
/* BorderRadius: 12px (borderRadiusMedium)      */
/* NO BOX SHADOW - Flutter uses none            */
/* ============================================ */

.tabure-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    /* Flutter: 100ms transition */
    transition: transform 100ms ease-in-out;
    user-select: none;
    /* Default = medium */
    height: 48px;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1;
    border-radius: 12px;
}

/* Sizes - EXACT Flutter values */
.tabure-btn--sm {
    height: 40px;
    padding: 0 16px;
    font-size: 12px;
}

.tabure-btn--md {
    height: 48px;
    padding: 0 20px;
    font-size: 14px;
}

.tabure-btn--lg {
    height: 56px;
    padding: 0 24px;
    font-size: 16px;
}

/* PRIMARY - scheme.primary, NO shadow */
.tabure-btn--primary {
    background-color: #1E5631;
    color: #FFFFFF;
}

/* SECONDARY - scheme.surface + outline border 2px */
.tabure-btn--secondary {
    background-color: #FFFFFF;
    color: #1A1A1A;
    border: 2px solid #79747E;
}

/* GHOST - transparent, primary text */
.tabure-btn--ghost {
    background-color: transparent;
    color: #1E5631;
}

/* DESTRUCTIVE - scheme.error */
.tabure-btn--destructive {
    background-color: #C62828;
    color: #FFFFFF;
}

/* SUCCESS - TabureBrandTokens.success */
.tabure-btn--success {
    background-color: #2E7D32;
    color: #FFFFFF;
}

/* WARNING - TabureBrandTokens.warning */
.tabure-btn--warning {
    background-color: #E65100;
    color: #FFFFFF;
}

/* INFO - TabureBrandTokens.info */
.tabure-btn--info {
    background-color: #1565C0;
    color: #FFFFFF;
}

/* Flutter: scale(0.98) on press */
.tabure-btn:active:not(:disabled) {
    transform: scale(0.98);
}

/* Disabled - opacity 0.38, NO color change */
.tabure-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

/* Full width */
.tabure-btn--expand {
    width: 100%;
}

/* ============================================ */
/* CARDS - TabureCard.dart                      */
/* BorderRadius: 12px (borderRadiusMedium)      */
/* Padding: 16px                                */
/* ============================================ */

.tabure-card {
    border-radius: 12px;
    overflow: hidden;
}

/* OUTLINED - border only, NO shadow */
.tabure-card--outlined {
    background-color: #FFFFFF;
    border: 1px solid #EEEEEE;
}

/* FILLED - surfaceContainerHighest */
.tabure-card--filled {
    background-color: #F5F5F5;
}

/* ELEVATED - surface + shadow */
.tabure-card--elevated {
    background-color: #FFFFFF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.tabure-card__content {
    padding: 16px;
}

.tabure-card__header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid #EEEEEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tabure-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
}

.tabure-card__footer {
    padding: 12px 16px;
    border-top: 1px solid #EEEEEE;
}

/* ============================================ */
/* INPUTS - TabureTextField.dart                */
/* Height: 56px (inputHeight)                   */
/* BorderRadius: 12px                           */
/* Border: 1.5px on focus                       */
/* ============================================ */

.tabure-input {
    width: 100%;
    height: 56px;
    padding: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #1A1A1A;
    background-color: #F5F5F5;
    border: 1.5px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: border-color 150ms, background-color 150ms;
}

.tabure-input::placeholder {
    color: #666666;
    opacity: 0.7;
}

.tabure-input:focus {
    border-color: #1E5631;
    background-color: #FFFFFF;
}

.tabure-input:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.tabure-input--error {
    border-color: #C62828;
}

.tabure-input--multiline {
    height: auto;
    min-height: 112px;
    resize: vertical;
}

.tabure-input-label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
}

.tabure-input-error {
    margin-top: 4px;
    padding: 0 16px;
    font-size: 12px;
    color: #C62828;
}

/* ============================================ */
/* STATUS CHIPS - TabureStatusChip.dart         */
/* BorderRadius: 16px (radiusLarge)             */
/* Padding: 4px 12px                            */
/* FontSize: 12px, FontWeight: bold             */
/* ============================================ */

.tabure-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    border-radius: 16px;
    border: 1px solid;
}

.tabure-chip--compact {
    padding: 2px 8px;
    font-size: 10px;
}

/* SUCCESS - 10% opacity bg, solid text */
.tabure-chip--success {
    background-color: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    border-color: rgba(46, 125, 50, 0.3);
}

/* WARNING */
.tabure-chip--warning {
    background-color: rgba(230, 81, 0, 0.1);
    color: #E65100;
    border-color: rgba(230, 81, 0, 0.3);
}

/* ERROR */
.tabure-chip--error {
    background-color: rgba(198, 40, 40, 0.1);
    color: #C62828;
    border-color: rgba(198, 40, 40, 0.3);
}

/* PRIMARY */
.tabure-chip--primary {
    background-color: rgba(30, 86, 49, 0.15);
    color: #1E5631;
    border-color: rgba(30, 86, 49, 0.3);
}

/* NEUTRAL */
.tabure-chip--neutral {
    background-color: #EEEEEE;
    color: #616161;
    border-color: #BDBDBD;
}

/* ============================================ */
/* DIVIDER                                      */
/* ============================================ */

.tabure-divider {
    height: 1px;
    background-color: #EEEEEE;
    border: none;
    margin: 16px 0;
}

/* ============================================ */
/* LOADING SPINNER                              */
/* ============================================ */

.tabure-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #E0E0E0;
    border-top-color: #1E5631;
    border-radius: 50%;
    animation: tabure-spin 800ms linear infinite;
}

@keyframes tabure-spin {
    to {
        transform: rotate(360deg);
    }
}

.tabure-loading--sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.tabure-loading--lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* ============================================ */
/* AVATAR                                       */
/* ============================================ */

.tabure-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1E5631;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
}

.tabure-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tabure-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.tabure-avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 20px;
}

/* ============================================ */
/* LIST TILE                                    */
/* ============================================ */

.tabure-list-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.tabure-list-tile__content {
    flex: 1;
    min-width: 0;
}

.tabure-list-tile__title {
    font-size: 16px;
    font-weight: 500;
    color: #1A1A1A;
    margin: 0;
}

.tabure-list-tile__subtitle {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

/* ============================================ */
/* DARK MODE                                    */
/* ============================================ */

@media (prefers-color-scheme: dark) {
    .tabure-btn--primary {
        background-color: #4C8C63;
    }

    .tabure-btn--secondary {
        background-color: #1E1E1E;
        color: #F5F5F5;
        border-color: #424242;
    }

    .tabure-btn--ghost {
        color: #4C8C63;
    }

    .tabure-card--outlined {
        background-color: #1E1E1E;
        border-color: #424242;
    }

    .tabure-card--filled {
        background-color: #2C2C2C;
    }

    .tabure-card--elevated {
        background-color: #1E1E1E;
        box-shadow: none;
        border: 1px solid #424242;
    }

    .tabure-card__header,
    .tabure-card__footer {
        border-color: #424242;
    }

    .tabure-card__title {
        color: #F5F5F5;
    }

    .tabure-input {
        background-color: #2C2C2C;
        color: #F5F5F5;
    }

    .tabure-input:focus {
        background-color: #1E1E1E;
        border-color: #4C8C63;
    }

    .tabure-input::placeholder {
        color: #D4D4D8;
    }

    .tabure-chip--neutral {
        background-color: #616161;
        color: #EEEEEE;
        border-color: #9E9E9E;
    }

    .tabure-divider {
        background-color: #424242;
    }

    .tabure-list-tile__title {
        color: #F5F5F5;
    }

    .tabure-list-tile__subtitle {
        color: #D4D4D8;
    }
}