/* Modern CSS for Mr.Shirt Platform - Inspired by Home Style */

:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #009ce4; /* Azul Mr Shirt */
    --accent-blue: #009ce4;
    --accent-pink: #ff3e6c;
    --text-color: #333333;
    --text-muted: #666666;
    --light-gray: #f4f4f4;
    --bg-light: #f9f9f9;
    --bg-lighter: #f4f4f4;
    --dark-gray: #1a1a1a;
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
    --border-radius-lg: 20px;
    --border-radius-md: 15px;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container, .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Compatibility with Old Classes --- */
.wrapper {
    padding: 80px 0;
}

.align-center {
    text-align: center;
}

.flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.flex-3 > div {
    flex: 1;
    min-width: 300px;
}

.box {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

/* --- Buttons --- */
.btn, .button, 
input[type="submit"], 
input[type="button"], 
input[type="reset"], 
button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    border: 2px solid var(--primary-color);
    text-align: center;
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
    font-family: var(--font-main);
}

.btn:hover, .button:hover, 
input[type="submit"]:hover, 
input[type="button"]:hover, 
button:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
}

.btn-primary, .button.special {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
}

.btn-outline, .button.alt, input[type="reset"], .btn-outline[type="button"] {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.btn-outline:hover, .button.alt:hover, input[type="reset"]:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color) !important;
}

.btn-accent {
    background-color: var(--accent-blue);
    color: var(--secondary-color) !important;
    border: 2px solid var(--accent-blue);
}

/* --- Form Styles --- */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

input[type="text"], input[type="password"], input[type="email"], input[type="tel"], textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-speed);
    margin-bottom: 10px;
}

input:focus, textarea:focus {
    border-color: var(--accent-blue);
}

/* --- Login Card --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.login-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

/* --- Dashboard / Cards --- */
.dashboard-grid, .flex-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.dashboard-card, .flex-item.box {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dashboard-card:hover, .flex-item.box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.dashboard-card img, .image.fit img {
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.dashboard-card .material-symbols-outlined {
    font-size: 85px;
    margin-bottom: 25px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 50%;
}

/* --- Subpage --- */
.subpage-container {
    padding-top: 100px;
}

section#main {
    padding-top: 120px;
}

/* --- Table Styles --- */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

th {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

tbody tr {
    transition: background-color var(--transition-speed);
}

tbody tr:hover {
    background-color: rgba(0, 156, 228, 0.05);
    cursor: pointer;
}

/* Status Labels */
.status-yes {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

.status-no {
    color: var(--accent-pink);
    background: rgba(255, 62, 108, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Modern File Input */
input[type="file"] {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius-md);
    border: 2px dashed #ddd;
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-speed);
}

input[type="file"]:hover {
    border-color: var(--accent-blue);
    background: #fff;
}

input[type="file"]::file-selector-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    margin-right: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.75rem;
}

/* --- Estatísticas de Vendas Premium --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.stat-card.sales-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 20px 25px;
}

.stat-chart-box {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.03);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 5px;
}

.mini-chart {
    width: 100%;
    height: 100%;
}

.stat-info h4 {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-vlr {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 2px;
}

.stat-qtd {
    font-size: 0.95rem;
    color: var(--accent-blue);
    font-weight: 600;
    opacity: 0.8;
}

/* Glassmorphism subtle effect for the chart */
.chart-container.card {
    padding: 35px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 50px rgba(0,0,0,0.04);
}

/* Section operational - Secondary but elegant */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* --- Layout de Botões (Ações) - CORREÇÃO DEFINITIVA --- */
ul.actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 40px 0 0 0 !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    clear: both !important;
}

.align-center ul.actions {
    justify-content: center !important;
}

ul.actions li {
    display: inline-block !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap !important;
}

ul.actions li input, 
ul.actions li .button {
    margin: 0 !important;
    width: auto !important;
    min-width: 140px !important;
    display: inline-block !important;
}

/* --- Grid Action Buttons --- */
.btn-grid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all var(--transition-speed);
    background: #f8f9fa;
    border: 1px solid #eee;
    color: var(--text-color);
}

.btn-grid:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-grid.edit {
    color: var(--accent-blue);
    background: rgba(0, 156, 228, 0.05);
}

.btn-grid.edit:hover {
    background: var(--accent-blue);
    color: #fff;
}

.btn-grid.delete {
    color: var(--accent-pink);
    background: rgba(255, 62, 108, 0.05);
}

.btn-grid.delete:hover {
    background: var(--accent-pink);
    color: #fff;
}

.btn-grid.print-area {
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.05);
    border-color: rgba(124, 58, 237, 0.2);
}

.btn-grid.print-area:hover {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
}

.btn-grid .material-symbols-outlined {
    font-size: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

/* --- Pagination Styles --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination .btn-grid {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 35px;
    width: auto;
    padding: 0 10px;
}

.pagination .btn-grid:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.pagination .btn-grid.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.pagination .material-symbols-outlined {
    font-size: 1.2rem !important;
}

/* --- Brand Link Dashboard Section --- */
.brand-link-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%) !important;
    border: 2px solid rgba(0, 156, 228, 0.1);
    position: relative;
    overflow: hidden;
}

.brand-link-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 156, 228, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.brand-url-box {
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px dashed var(--accent-blue);
    color: var(--accent-blue);
    font-family: monospace;
    font-size: 0.9rem;
    margin: 15px 0 25px 0;
    width: 100%;
    word-break: break-all;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    position: relative;
    z-index: 1;
}

.brand-link-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.brand-link-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
